2011-06-08 Stefano Lattarini <stefano.lattarini@gmail.com>
+ self tests: check new 'fatal_' function
+ * tests/self-check-exit.test: Also check the new 'fatal_'
+ function.
+
+2011-06-08 Stefano Lattarini <stefano.lattarini@gmail.com>
+
test defs: new function 'fatal_', for hard errors
Before this patch, the only way offered by tests/defs to
properly signal a hard error was the `framework_failure_'
(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
(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