test-lib.sh: Add check for invalid use of 'skip_all' facility
commitbf4b7219322d007f3ebd2a002114956d025e4703
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>
Sat, 1 Sep 2012 18:13:19 +0000 (1 19:13 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 3 Sep 2012 02:32:31 +0000 (2 19:32 -0700)
tree66c10828a7d9960cd12b26b5da25a174cd190273
parent1c0cc7563b079e17f84cf93e5b735ec9fa4ad11a
test-lib.sh: Add check for invalid use of 'skip_all' facility

The 'skip_all' facility cannot be used after one or more tests
have been executed using (for example) 'test_expect_success'.
To do so results in invalid TAP output, which leads to 'prove'
complaining of "Parse errors: No plan found in TAP output".

Add a check for such invalid usage and abort the test with an
error message to alert the test author.

Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib.sh