← Commit list

e2f84e6ba9

Viktor Szakats
Viktor Szakats
2026-04-27
SUCCESS Duration: 246s

Subject

tunits: initialize global `tool_stderr`

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

tests/libtest/first.c+8 -0
@@ -27,6 +27,10 @@
#include <locale.h> /* for setlocale() */
#endif
+#if defined(UNITTESTS) && !defined(BUILDING_LIBCURL)
+#include "tool_stderr.h" /* for tool_init_stderr() */
+#endif
+
int select_wrapper(int nfds, fd_set *rd, fd_set *wr, fd_set *exc,
struct timeval *tv)
{
@@ -276,6 +280,10 @@ int main(int argc, const char **argv)
testnum = (int)num;
}
+#if defined(UNITTESTS) && !defined(BUILDING_LIBCURL)
+ tool_init_stderr();
+#endif
+
result = entry_func(URL);
curl_mfprintf(stderr, "Test ended with result %d\n", result);