summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtests/httpserver.pl3
-rwxr-xr-xtests/rtspserver.pl3
-rwxr-xr-xtests/runtests.pl6
-rwxr-xr-xtests/secureserver.pl3
-rw-r--r--tests/sshserver.pl3
-rwxr-xr-xtests/tftpserver.pl3
6 files changed, 18 insertions, 3 deletions
diff --git a/tests/httpserver.pl b/tests/httpserver.pl
index fbdb6752c..9c50e02d5 100755
--- a/tests/httpserver.pl
+++ b/tests/httpserver.pl
@@ -152,4 +152,5 @@ if($verbose) {
print STDERR "RUN: server/sws".exe_ext('SRV')." $flags\n";
}
-exec("server/sws".exe_ext('SRV')." $flags");
+$| = 1;
+exec("exec server/sws".exe_ext('SRV')." $flags");
diff --git a/tests/rtspserver.pl b/tests/rtspserver.pl
index bb4bef40d..471bcbd5e 100755
--- a/tests/rtspserver.pl
+++ b/tests/rtspserver.pl
@@ -119,4 +119,5 @@ $flags .= "--pidfile \"$pidfile\" ".
"--logfile \"$logfile\" ";
$flags .= "--ipv$ipvnum --port $port --srcdir \"$srcdir\"";
-exec("server/rtspd".exe_ext('SRV')." $flags");
+$| = 1;
+exec("exec server/rtspd".exe_ext('SRV')." $flags");
diff --git a/tests/runtests.pl b/tests/runtests.pl
index 30ae0b349..577f23467 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -496,6 +496,9 @@ sub startnew {
if(0 == $child) {
# Here we are the child. Run the given command.
+ # Flush output.
+ $| = 1;
+
# Put an "exec" in front of the command so that the child process
# keeps this child's process ID.
exec("exec $cmd") || die "Can't exec() $cmd: $!";
@@ -4108,6 +4111,9 @@ sub singletest {
close(GDBCMD);
}
+ # Flush output.
+ $| = 1;
+
# timestamp starting of test command
$timetoolini{$testnum} = Time::HiRes::time();
diff --git a/tests/secureserver.pl b/tests/secureserver.pl
index be1de0566..fb1c4df82 100755
--- a/tests/secureserver.pl
+++ b/tests/secureserver.pl
@@ -341,6 +341,9 @@ if($tstunnel_windows) {
close(OUT);
}
+ # Flush output.
+ $| = 1;
+
# Put an "exec" in front of the command so that the child process
# keeps this child's process ID by being tied to the spawned shell.
exec("exec $cmd") || die "Can't exec() $cmd: $!";
diff --git a/tests/sshserver.pl b/tests/sshserver.pl
index 944193907..90281eb40 100644
--- a/tests/sshserver.pl
+++ b/tests/sshserver.pl
@@ -1122,6 +1122,9 @@ if ($sshdid =~ /OpenSSH-Windows/) {
close(OUT);
}
+ # Flush output.
+ $| = 1;
+
# Put an "exec" in front of the command so that the child process
# keeps this child's process ID by being tied to the spawned shell.
exec("exec $cmd") || die "Can't exec() $cmd: $!";
diff --git a/tests/tftpserver.pl b/tests/tftpserver.pl
index f9fbbe9bc..d582b5fb6 100755
--- a/tests/tftpserver.pl
+++ b/tests/tftpserver.pl
@@ -120,4 +120,5 @@ $flags .= "--pidfile \"$pidfile\" ".
"--logfile \"$logfile\" ";
$flags .= "--ipv$ipvnum --port $port --srcdir \"$srcdir\"";
-exec("server/tftpd".exe_ext('SRV')." $flags");
+$| = 1;
+exec("exec server/tftpd".exe_ext('SRV')." $flags");