Browse Source

also catch segfaults reported by subshells

dstogov-foreach
Michael Wallner 12 years ago
parent
commit
d88edb6d96
  1. 5
      run-tests.php

5
run-tests.php

@ -1125,7 +1125,10 @@ function system_with_timeout($commandline, $env = null, $stdin = null)
$stat = proc_get_status($proc);
if ($stat['signaled']) {
$data .= "\nTermsig=" . $stat['stopsig'];
$data .= "\nTermsig=" . $stat['stopsig'] . "\n";
}
if ($stat["exitcode"] > 128) {
$data .= "\nTermsig=" . ($stat["exitcode"] - 128) . "\n";
}
$code = proc_close($proc);

Loading…
Cancel
Save