From: Stefan Eissing Date: Thu, 26 Sep 2024 12:46:18 +0000 (+0200) Subject: test1540: add debug logging X-Git-Tag: curl-8_11_0~324 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b2dc95540a064d54f15a08624f1e4ac5cb274a0d;p=thirdparty%2Fcurl.git test1540: add debug logging Closes #15055 --- diff --git a/tests/libtest/Makefile.inc b/tests/libtest/Makefile.inc index 82131db26d..056968c99f 100644 --- a/tests/libtest/Makefile.inc +++ b/tests/libtest/Makefile.inc @@ -465,7 +465,7 @@ lib1539_SOURCES = lib1514.c $(SUPPORTFILES) $(TESTUTIL) $(WARNLESS) lib1539_LDADD = $(TESTUTIL_LIBS) lib1539_CPPFLAGS = $(AM_CPPFLAGS) -DLIB1539 -lib1540_SOURCES = lib1540.c $(SUPPORTFILES) $(TESTUTIL) $(WARNLESS) +lib1540_SOURCES = lib1540.c $(SUPPORTFILES) $(TESTUTIL) $(TSTTRACE) $(WARNLESS) lib1540_LDADD = $(TESTUTIL_LIBS) lib1541_SOURCES = lib1541.c $(SUPPORTFILES) $(TESTUTIL) $(WARNLESS) diff --git a/tests/libtest/lib1540.c b/tests/libtest/lib1540.c index 4c59ef81b4..714d5d5e7c 100644 --- a/tests/libtest/lib1540.c +++ b/tests/libtest/lib1540.c @@ -23,6 +23,7 @@ ***************************************************************************/ #include "test.h" +#include "testtrace.h" #include "testutil.h" #include "warnless.h" #include "memdebug.h" @@ -107,6 +108,12 @@ CURLcode test(char *URL) easy_setopt(curls, CURLOPT_XFERINFODATA, &st); easy_setopt(curls, CURLOPT_NOPROGRESS, 0L); + libtest_debug_config.nohex = 1; + libtest_debug_config.tracetime = 1; + test_setopt(curls, CURLOPT_DEBUGDATA, &libtest_debug_config); + easy_setopt(curls, CURLOPT_DEBUGFUNCTION, libtest_debug_cb); + easy_setopt(curls, CURLOPT_VERBOSE, 1L); + res = curl_easy_perform(curls); test_cleanup: