From: Stefano Lattarini Date: Tue, 7 Jun 2011 14:00:31 +0000 (+0200) Subject: self tests: check new 'fatal_' function X-Git-Tag: ng-0.5a~89^2~194 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d295932ed40e46b94fe2ce8932a571ebd1e7dc92;p=thirdparty%2Fautomake.git self tests: check new 'fatal_' function * tests/self-check-exit.test: Also check the new 'fatal_' function. --- diff --git a/ChangeLog b/ChangeLog index 6ada906ea..40c0d6597 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-06-08 Stefano Lattarini + + self tests: check new 'fatal_' function + * tests/self-check-exit.test: Also check the new 'fatal_' + function. + 2011-06-08 Stefano Lattarini test defs: new function 'fatal_', for hard errors diff --git a/tests/self-check-report.test b/tests/self-check-report.test index e04c88ec3..5434d5aad 100755 --- a/tests/self-check-report.test +++ b/tests/self-check-report.test @@ -31,6 +31,8 @@ exec 5>&1 (fail_ foo) 2>&1 1>&5 | grep "^$me: failed test: foo" || Exit 1 (skip_ foo); test $? -eq 77 || Exit 1 (skip_ foo) 2>&1 1>&5 | grep "^$me: skipped test: foo" || Exit 1 +(fatal_ foo); test $? -eq 99 || Exit 1 +(fatal_ foo) 2>&1 1>&5 | grep "^$me: hard error: foo" || Exit 1 (framework_failure_ foo); test $? -eq 99 || Exit 1 (framework_failure_ foo) 2>&1 1>&5 \ | grep "^$me: set-up failure: foo" || Exit 1 @@ -42,6 +44,8 @@ stderr_fileno_=6 (fail_ foo) 6>&1 1>&5 | grep "^$me: failed test: foo" || Exit 1 (skip_ foo); test $? -eq 77 || Exit 1 (skip_ foo) 6>&1 1>&5 | grep "^$me: skipped test: foo" || Exit 1 +(fatal_ foo); test $? -eq 99 || Exit 1 +(fatal_ foo) 6>&1 1>&5 | grep "^$me: hard error: foo" || Exit 1 (framework_failure_ foo); test $? -eq 99 || Exit 1 (framework_failure_ foo) 6>&1 1>&5 \ | grep "^$me: set-up failure: foo" || Exit 1