]> git.ipfire.org Git - thirdparty/automake.git/commit
test defs: new function 'fatal_', for hard errors
authorStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 7 Jun 2011 13:24:11 +0000 (15:24 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 8 Jun 2011 08:52:48 +0000 (10:52 +0200)
commit5b7c6b4ce170477dc3a25a5ca669d117bfb40aa8
treeea20267cf2dfd71447dbae130072311bce57e167
parent24b9022b753b129d9a2832904fbd9b7a7bbb17d6
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_'
function.  But the error message issued by that function,
as its name would suggest, refers to a set-up failure in the
testsuite, while hard errors can obviously also be due to
other reasons.  The best way to fix this inconsistency is to
introduce a new function with a more general error message.

Inspired by a recent similar change to Gnulib's tests/init.sh.

* tests/defs.in (fatal_): New function.
* tests/README (Section "Writing test cases" subsection "Do"):
Suggest the use of `fatal_', not of `framework_failure_', for
generic hard errors.  The latter should be reserved for "real"
set-up failures.
ChangeLog
tests/README
tests/defs.in