runtests: support "threaded-resolver" as a feature
authorDaniel Stenberg <daniel@haxx.se>
Thu, 6 Jul 2017 09:11:07 +0000 (11:11 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 6 Jul 2017 09:49:50 +0000 (11:49 +0200)
... to let tests require it or skip if present

tests/FILEFORMAT
tests/runtests.pl

index 5c1e96f537fd9158f480acba7a4bb1af63f80383..75e561ae8a0a5b86d98730660d892b0cb34dd55b 100644 (file)
@@ -239,6 +239,7 @@ SSLpinning
 SSPI
 TLS-SRP
 TrackMemory
+threaded-resolver
 unittest
 unix-sockets
 WinSSL
index a837002004a7bd6711f6a2a62a5cb0179ff39b93..212e726e716085dcbd8f85c5bacc34916be51e65 100755 (executable)
@@ -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;
                 }