Skip to content

Commit 729cd8b

Browse files
dktappscmb69
authored andcommitted
run-tests: fixed exit code not being set on BORKED tests
When no test paths are specified this shows up when 'make test' is used on a PECL extension without specifying tests to run (or in php-src too, I guess...) Closes GH-6717.
1 parent 06c9633 commit 729cd8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

run-tests.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ function test_sort($a, $b)
10151015
junit_save_xml();
10161016
if (getenv('REPORT_EXIT_STATUS') !== '0' &&
10171017
getenv('REPORT_EXIT_STATUS') !== 'no' &&
1018-
($sum_results['FAILED'] || $sum_results['LEAKED'])) {
1018+
($sum_results['FAILED'] || $sum_results['BORKED'] || $sum_results['LEAKED'])) {
10191019
exit(1);
10201020
}
10211021
exit(0);

0 commit comments

Comments
 (0)