]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
runtests: fix skipping tests not done event-based
authorDaniel Stenberg <daniel@haxx.se>
Wed, 8 Jun 2022 08:24:35 +0000 (10:24 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 8 Jun 2022 08:56:37 +0000 (10:56 +0200)
... and call timestampskippedevents() to avoid the flood of
uninitialized variable warnings.

Closes #8977

tests/runtests.pl

index cc308e7ba34fa0267359d1d78848adc331a3d022..f135d5137deec0c74d1d64909d9ed3648d562c59 100755 (executable)
@@ -4141,6 +4141,12 @@ sub singletest {
         $DBGCURL=$CMDLINE;
     }
 
+    if($fail_due_event_based) {
+        logmsg "This test cannot run event based\n";
+        timestampskippedevents($testnum);
+        return -1;
+    }
+
     if($gdbthis) {
         # gdb is incompatible with valgrind, so disable it when debugging
         # Perhaps a better approach would be to run it under valgrind anyway
@@ -4148,11 +4154,6 @@ sub singletest {
         $disablevalgrind=1;
     }
 
-    if($fail_due_event_based) {
-        logmsg "This test cannot run event based\n";
-        return -1;
-    }
-
     my @stdintest = getpart("client", "stdin");
 
     if(@stdintest) {