Bug #67177 [Asn->Ana]: run-tests.php doesn't work well with LEAK

From: Date: Tue, 24 Oct 2017 04:34:23 +0000
Subject: Bug #67177 [Asn->Ana]: run-tests.php doesn't work well with LEAK
References: 1  Groups: php.bugs php.qa 
Request: Send a blank email to php-bugs+get-211909@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67177&edit=1 ID: 67177 Updated by: kalle@php.net Reported by: nikic@php.net Summary: run-tests.php doesn't work well with LEAK -Status: Assigned +Status: Analyzed Type: Bug Package: Testing related PHP Version: 5.6.0beta2 -Assigned To: tyrael +Assigned To: Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2014-05-02 10:29:26] nikic@php.net @tyrael: A LEAK&FAIL test is only counted towards the number of leaked tests, but not towards the number of failed tests (otherwise it would be counted twice). That's why exit status will be 0 even though there were failed tests (that also happened to have memory errors). ------------------------------------------------------------------------ [2014-05-02 07:28:19] tyrael@php.net FAILED tests should fail the execution when REPORT_EXIT_STATUS=1 is set, could you show an exemple where that doesn't work? when you call run-tests.php with -m, it will mark the leaking tests as LEAKED, which isn't FAILED, so that won't result in a non-zero exit status. --show-mem sounds reasonable, and --show-all should also show the .mem if there is one. ------------------------------------------------------------------------ [2014-05-02 07:00:39] nikic@php.net Description: ------------ * REPORT_EXIT_STATUS=1 results in exit=0 even though there are FAILED&LEAKED tests. * There is no --show-mem or --show-leak option. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=67177&edit=1

« previous php.bugs (#211909) next »