From: Ævar Arnfjörð Bjarmason Date: Tue, 5 Jun 2007 23:25:38 +0000 (+0000) Subject: ok 1 => pass; ok 0 => fail and report the path in the test X-Git-Tag: 1.31.0-rc.0~52648 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=b5447225ac6d1a6f82cd137cb72d25069c6c973a;p=lhc%2Fweb%2Fwiklou.git ok 1 => pass; ok 0 => fail and report the path in the test --- diff --git a/t/maint/php-lint.t b/t/maint/php-lint.t index e65d689509..6687a08940 100644 --- a/t/maint/php-lint.t +++ b/t/maint/php-lint.t @@ -26,8 +26,8 @@ for my $file (@files) { waitpid $pid, 0; if ( $? == 0 ) { - ok 1 => "Looks fine"; + pass($file); } else { - ok 0 => "$file does not pass php linter. Error was: $res"; + fail("$file does not pass php -l. Error was: $res"); } }