From 17a7e12e1b81065faa3adc6995a0cb8919114abc Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Thu, 26 Sep 2024 14:40:48 +0200 Subject: [PATCH] test2502: add libtest debug tracing Closes #15053 --- tests/data/test2502 | 8 ++++---- tests/libtest/Makefile.inc | 2 +- tests/libtest/lib2502.c | 5 +++++ 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/tests/data/test2502 b/tests/data/test2502 index aae65e1cc1..d20771a6f3 100644 --- a/tests/data/test2502 +++ b/tests/data/test2502 @@ -92,10 +92,10 @@ Via: 3 nghttpx ^Host:.* -* Connection #0 to host localhost left intact -* Connection #0 to host localhost left intact -* Connection #0 to host localhost left intact -* Connection #0 to host localhost left intact +== Info: Connection #0 to host localhost left intact +== Info: Connection #0 to host localhost left intact +== Info: Connection #0 to host localhost left intact +== Info: Connection #0 to host localhost left intact $_ = '' if (($_ !~ /left intact/) && ($_ !~ /Closing connection/)) diff --git a/tests/libtest/Makefile.inc b/tests/libtest/Makefile.inc index 948d9f76d5..82131db26d 100644 --- a/tests/libtest/Makefile.inc +++ b/tests/libtest/Makefile.inc @@ -692,7 +692,7 @@ lib2404_LDADD = $(TESTUTIL_LIBS) lib2405_SOURCES = lib2405.c $(SUPPORTFILES) $(TESTUTIL) $(WARNLESS) lib2405_LDADD = $(TESTUTIL_LIBS) -lib2502_SOURCES = lib2502.c $(SUPPORTFILES) $(TESTUTIL) $(WARNLESS) +lib2502_SOURCES = lib2502.c $(SUPPORTFILES) $(TESTUTIL) $(TSTTRACE) $(WARNLESS) lib2502_LDADD = $(TESTUTIL_LIBS) lib3010_SOURCES = lib3010.c $(SUPPORTFILES) $(TESTUTIL) $(WARNLESS) diff --git a/tests/libtest/lib2502.c b/tests/libtest/lib2502.c index eaaff258ad..f01fbe0c5c 100644 --- a/tests/libtest/lib2502.c +++ b/tests/libtest/lib2502.c @@ -23,6 +23,7 @@ ***************************************************************************/ #include "test.h" +#include "testtrace.h" #include "testutil.h" #include "warnless.h" #include "memdebug.h" @@ -80,6 +81,10 @@ CURLcode test(char *URL) /* wait for first connection established to see if we can share it */ easy_setopt(curl[i], CURLOPT_PIPEWAIT, 1L); /* go verbose */ + libtest_debug_config.nohex = 1; + libtest_debug_config.tracetime = 0; + test_setopt(curl[i], CURLOPT_DEBUGDATA, &libtest_debug_config); + easy_setopt(curl[i], CURLOPT_DEBUGFUNCTION, libtest_debug_cb); easy_setopt(curl[i], CURLOPT_VERBOSE, 1L); /* include headers */ easy_setopt(curl[i], CURLOPT_HEADER, 1L); -- 2.47.3