Skip to content

run-tests: fixed exit code not being set on BORKED tests when no test… #6717

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

run-tests: fixed exit code not being set on BORKED tests when no test… #6717

wants to merge 1 commit into from

Conversation

dktapps
Copy link
Contributor

@dktapps dktapps commented Feb 23, 2021

… 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...)
It produced a bug which I found unexpectedly difficult to reproduce; it turns out there are actually 2 places where run-tests exits, and the other exit point handles BORKED correctly:

($sum_results['FAILED'] || $sum_results['BORKED'] || $sum_results['LEAKED'])) {

Side note: I discovered this due to an XLEAK section in one of my tests which wasn't recognized by 7.3's run-tests.php. It would be nice if it was supported, even if it's ignored.

… 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...)
@nikic
Copy link
Member

nikic commented Feb 23, 2021

@cmb69 Thoughts on PHP-7.3 target for a run-tests.php fix?

@cmb69
Copy link
Member

cmb69 commented Feb 23, 2021

I think this is okay for PHP 7.3.

@php-pulls php-pulls closed this in 729cd8b Feb 23, 2021
@cmb69
Copy link
Member

cmb69 commented Feb 23, 2021

Thanks for the PR!

@dktapps dktapps deleted the run-tests-borked branch February 24, 2021 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants