From: Jay Satiro Date: Tue, 21 Jun 2022 06:17:14 +0000 (-0400) Subject: runtests: add "threadsafe" to detected features X-Git-Tag: curl-7_84_0~22 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=51e0b8fc6067e5b8b26420c0cbdf0e183b479e57;p=thirdparty%2Fcurl.git runtests: add "threadsafe" to detected features 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 --- diff --git a/tests/runtests.pl b/tests/runtests.pl index 97f6e612e1..80370ba1ab 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -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