From 478cd08632b7fec5a57ddc14a7cdb52f8c665676 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Mon, 22 Feb 2021 23:56:11 +0000 Subject: [PATCH] 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...) --- run-tests.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run-tests.php b/run-tests.php index 84b43866fe076..6e551f4bb4be6 100755 --- a/run-tests.php +++ b/run-tests.php @@ -1015,7 +1015,7 @@ function test_sort($a, $b) junit_save_xml(); if (getenv('REPORT_EXIT_STATUS') !== '0' && getenv('REPORT_EXIT_STATUS') !== 'no' && - ($sum_results['FAILED'] || $sum_results['LEAKED'])) { + ($sum_results['FAILED'] || $sum_results['BORKED'] || $sum_results['LEAKED'])) { exit(1); } exit(0);