From 759efe7b51d1a2d5681839d6fb23b21b27de91ba Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 6 Jul 2017 11:11:07 +0200 Subject: [PATCH] runtests: support "threaded-resolver" as a feature ... to let tests require it or skip if present --- tests/FILEFORMAT | 1 + tests/runtests.pl | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/tests/FILEFORMAT b/tests/FILEFORMAT index 5c1e96f53..75e561ae8 100644 --- a/tests/FILEFORMAT +++ b/tests/FILEFORMAT @@ -239,6 +239,7 @@ SSLpinning SSPI TLS-SRP TrackMemory +threaded-resolver unittest unix-sockets WinSSL diff --git a/tests/runtests.pl b/tests/runtests.pl index a83700200..212e726e7 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -3264,6 +3264,11 @@ sub singletest { next; } } + elsif($1 eq "threaded-resolver") { + if($has_threadedres) { + next; + } + } elsif($1 eq "PSL") { if($has_psl) { next; @@ -3410,6 +3415,11 @@ sub singletest { next; } } + elsif($1 eq "threaded-resolver") { + if(!$has_threadedres) { + next; + } + } else { next; }