From aa87c89d35603db54a22c33422848000dc606970 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Sat, 31 May 2003 12:14:41 +0000 Subject: [PATCH] MFB: Showing info/warning once is enough --- run-tests.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/run-tests.php b/run-tests.php index bc2193ad3d..6262694939 100755 --- a/run-tests.php +++ b/run-tests.php @@ -612,6 +612,10 @@ function system_with_timeout($commandline) $data .= $line; } } + $stat = proc_get_status($proc); + if ($stat['signaled']) { + $data .= "\nTermsig=".$stat['stopsig']; + } $code = proc_close($proc); return $data; } @@ -704,7 +708,6 @@ TEST $file $reason = (ereg("^info[[:space:]]*(.+)\$", trim($output))) ? ereg_replace("^info[[:space:]]*(.+)\$", "\\1", trim($output)) : FALSE; if ($reason) { $info = " (info: $reason)"; - $tested .= $info; } } if (eregi("^warn", trim($output))) { @@ -712,7 +715,6 @@ TEST $file if ($reason) { $warn = true; /* only if there is a reason */ $info = " (warn: $reason)"; - $tested .= $info; } } } -- 2.50.1