From b9313af8389cd2b903a3b6ee0d4580c431b5e8e6 Mon Sep 17 00:00:00 2001
From: Daniel Stenberg <daniel@haxx.se>
Date: Tue, 19 Jul 2011 23:49:40 +0200
Subject: [PATCH] runtests: add 'debug' as a feature a test can require

---
 tests/FILEFORMAT  | 2 +-
 tests/runtests.pl | 5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/tests/FILEFORMAT b/tests/FILEFORMAT
index 74fecacdd..fd036a2c9 100644
--- a/tests/FILEFORMAT
+++ b/tests/FILEFORMAT
@@ -176,13 +176,13 @@ idn
 ipv6
 large_file
 libz
-netrc_debug
 NSS
 NTLM
 OpenSSL
 SSL
 socks
 unittest
+debug
 
 as well as each protocol that curl supports.  A protocol only needs to be
 specified if it is different from the server (useful when the server
diff --git a/tests/runtests.pl b/tests/runtests.pl
index 749840b51..d6b7d08b6 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -2495,6 +2495,11 @@ sub singletest {
                 next;
             }
         }
+        elsif($f eq "debug") {
+            if($debug_build) {
+                next;
+            }
+        }
         elsif($f eq "large_file") {
             if($large_file) {
                 next;
-- 
2.40.0