com php-src: also catch segfaults reported by subshells: run-tests.php

From: Date: Fri, 30 Jan 2015 17:00:23 +0000
Subject: com php-src: also catch segfaults reported by subshells: run-tests.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-84467@lists.php.net to get a copy of this message
Commit: d88edb6d96620354e01f292b6b98eae93fd712eb Author: Michael Wallner <mike@php.net> Fri, 30 Jan 2015 18:00:23 +0100 Parents: fa453d5abd358a1e99e304ba69e7a11059e8f1a0 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d88edb6d96620354e01f292b6b98eae93fd712eb Log: also catch segfaults reported by subshells Changed paths: M run-tests.php Diff: diff --git a/run-tests.php b/run-tests.php index 9d1a78c..0931647 100755 --- a/run-tests.php +++ b/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);

« previous php.cvs (#84467) next »