]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
runtests.pl: reapply accidental revert
authorViktor Szakats <commit@vsz.me>
Tue, 11 Feb 2025 00:38:11 +0000 (01:38 +0100)
committerViktor Szakats <commit@vsz.me>
Tue, 11 Feb 2025 00:45:03 +0000 (01:45 +0100)
Reapply an accidental, and unrelated, change committed in
3c128966edc86c89de85f72671f9f627c984af53 which unwantedly reverted
the preceding commit fcd5c2baffff95b858b43bfbc3d03dac2ef1b5ce.

Caused by doing a local rebase when `git am` did not apply cleanly,
and most likely using a local base behind master.

tests/runtests.pl

index 35c1b121491ee7bf7b4c5686e93ae3c45bfa9972..d6472935558c4a7b4113d6041cfccf5c8c3297f6 100755 (executable)
@@ -670,11 +670,15 @@ sub checksystemfeatures {
             $feature{"alt-svc"} = $feat =~ /alt-svc/i;
             # HSTS support
             $feature{"HSTS"} = $feat =~ /HSTS/i;
+            $feature{"asyn-rr"} = $feat =~ /asyn-rr/;
             if($feat =~ /AsynchDNS/i) {
-                if(!$feature{"c-ares"}) {
+                if(!$feature{"c-ares"} || $feature{"asyn-rr"}) {
                     # this means threaded resolver
                     $feature{"threaded-resolver"} = 1;
                     $resolver="threaded";
+
+                    # does not count as "real" c-ares
+                    $feature{"c-ares"} = 0;
                 }
             }
             # http2 enabled
@@ -698,7 +702,6 @@ sub checksystemfeatures {
             # Thread-safe init
             $feature{"threadsafe"} = $feat =~ /threadsafe/i;
             $feature{"HTTPSRR"} = $feat =~ /HTTPSRR/;
-            $feature{"asyn-rr"} = $feat =~ /asyn-rr/;
         }
         #
         # Test harness currently uses a non-stunnel server in order to