diff --git a/tests/runtests.pl b/tests/runtests.pl
index 019c7eb07254d8e6b9ffa753c1c90aae0767344e..012e8bcca84b5648999ae7ae3ebbbd815ce3fdfa 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -733,7 +733,7 @@ sub runtftpserver {
     if($ipv6) {
         $flag .="--ipv6 ";
     }
-    $cmd="$srcdir/server/tftpd --pidfile $pidfile $flag $port";
+    $cmd="./server/tftpd --pidfile $pidfile $flag $port";
 
     unlink($pidfile);