From 7ac455fca387526ae2aec6149b6eecb216916f6c Mon Sep 17 00:00:00 2001
From: Daniel Stenberg <daniel@haxx.se>
Date: Fri, 20 Feb 2004 06:59:17 +0000
Subject: [PATCH] When trying to see if there's a friendly http server on "our"
 port, we only accept return code 7 to indicate that there's no server
 present.

---
 tests/runtests.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/runtests.pl b/tests/runtests.pl
index f0ca9963c9..ffab484cb1 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -338,7 +338,7 @@ sub runhttpserver {
     if ( $data =~ /WE ROOLZ: (\d+)/ ) {
         $pid = 0+$1;
     }
-    elsif($data) {
+    elsif($data || ($res != 7)) {
         print "RUN: Unknown HTTP server is running on port $HOSTPORT\n";
         return -2;
     }
-- 
GitLab