From 87b574a186813d5f621c395da9208df784e20cd0 Mon Sep 17 00:00:00 2001
From: Fabian Keil <fk@fabiankeil.de>
Date: Mon, 16 Jun 2014 14:59:11 +0200
Subject: [PATCH 2/6] runtests.pl: Let runhttpserver() use $TESTDIR instead of
 $srcdir

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

diff --git a/tests/runtests.pl b/tests/runtests.pl
index 74f07a2..d6401a4 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -1240,7 +1240,7 @@ sub runhttpserver {
     $flags .= $verbose_flag if($debugprotocol);
     $flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
     $flags .= "--id $idnum " if($idnum > 1);
-    $flags .= "--ipv$ipvnum --port $port --srcdir \"$srcdir\"";
+    $flags .= "--ipv$ipvnum --port $port --srcdir \"$TESTDIR/..\"";
 
     my $cmd = "$exe $flags";
     my ($httppid, $pid2) = startnew($cmd, $pidfile, 15, 0);
-- 
1.9.0


