test2502: add libtest debug tracing

Closes #15053
This commit is contained in:
Stefan Eissing 2024-09-26 14:40:48 +02:00 committed by Daniel Stenberg
parent f518982775
commit 17a7e12e1b
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
3 changed files with 10 additions and 5 deletions

View 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/))

View 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)

View 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);