]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
runtests: add "threadsafe" to detected features
authorJay Satiro <raysatiro@yahoo.com>
Tue, 21 Jun 2022 06:17:14 +0000 (02:17 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Tue, 21 Jun 2022 07:17:56 +0000 (03:17 -0400)
Follow-up to recent commits which added thread-safety support.

Bug: https://github.com/curl/curl/pull/9012#discussion_r902018782
Reported-by: Marc Hörsken
Closes https://github.com/curl/curl/pull/9030

tests/runtests.pl

index 97f6e612e13bdf203b1676993e7d2db9cb776c4c..80370ba1ab4238a3bffdf367da866dc35a865dbd 100755 (executable)
@@ -278,6 +278,7 @@ my $has_libssh;     # set if built with libssh
 my $has_oldlibssh;  # set if built with libssh < 0.9.4
 my $has_wolfssh;    # set if built with wolfssh
 my $has_unicode;    # set if libcurl is built with Unicode support
+my $has_threadsafe; # set if libcurl is built with thread-safety support
 
 # this version is decided by the particular nghttp2 library that is being used
 my $h2cver = "h2c";
@@ -2923,6 +2924,7 @@ sub setupfeatures {
     $feature{"SSLpinning"} = $has_sslpinning;
     $feature{"SSPI"} = $has_sspi;
     $feature{"threaded-resolver"} = $has_threadedres;
+    $feature{"threadsafe"} = $has_threadsafe;
     $feature{"TLS-SRP"} = $has_tls_srp;
     $feature{"TrackMemory"} = $has_memory_tracking;
     $feature{"Unicode"} = $has_unicode;
@@ -3218,6 +3220,9 @@ sub checksystem {
             if($feat =~ /Unicode/i) {
                 $has_unicode = 1;
             }
+            if($feat =~ /threadsafe/i) {
+                $has_threadsafe = 1;
+            }
         }
         #
         # Test harness currently uses a non-stunnel server in order to