From d295932ed40e46b94fe2ce8932a571ebd1e7dc92 Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Tue, 7 Jun 2011 16:00:31 +0200 Subject: [PATCH] self tests: check new 'fatal_' function * tests/self-check-exit.test: Also check the new 'fatal_' function. --- ChangeLog | 6 ++++++ tests/self-check-report.test | 4 ++++ 2 files changed, 10 insertions(+) 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 -- 2.47.2