summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2003-05-31 12:14:41 (GMT)
committerMarcus Boerger <helly@php.net>2003-05-31 12:14:41 (GMT)
commitaa87c89d35603db54a22c33422848000dc606970 (patch)
treef9b081d7d0c45c69816f9b7313e1118a4862d411 /run-tests.php
parent2efc619daea5fb9366e46e276dcb29b67fc447b1 (diff)
downloadphp-aa87c89d35603db54a22c33422848000dc606970.tar.gz
MFB: Showing info/warning once is enough
Diffstat (limited to 'run-tests.php')
-rwxr-xr-xrun-tests.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/run-tests.php b/run-tests.php
index bc2193a..6262694 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;
}
}
}