]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
test2502: add libtest debug tracing
authorStefan Eissing <stefan@eissing.org>
Thu, 26 Sep 2024 12:40:48 +0000 (14:40 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 26 Sep 2024 14:57:13 +0000 (16:57 +0200)
Closes #15053

tests/data/test2502
tests/libtest/Makefile.inc
tests/libtest/lib2502.c

index aae65e1cc13a57e6e6399e67c7078b7d9a3729e5..d20771a6f33e347693f0ccfa5646fa096ac3c0f0 100644 (file)
@@ -92,10 +92,10 @@ Via: 3 nghttpx
 ^Host:.*
 </strip>
 <file name="%LOGDIR/stderr%TESTNUMBER" mode="text">
-* 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
 </file>
 <stripfile>
 $_ = '' if (($_ !~ /left intact/) && ($_ !~ /Closing connection/))
index 948d9f76d551744bf0f783fcb1f04d5fb6d318a5..82131db26d5fdc8a95bcd532785fb85ec3c71d97 100644 (file)
@@ -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)
index eaaff258adc016d412f8cc9d614c6b947143c99c..f01fbe0c5cecf63ec686c099bf444f5fd0d32133 100644 (file)
@@ -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);