Fix handling of broken tests.

Make sure to close the subtest for test_expect_equal_failure, just
like in test_expect_equal.
This commit is contained in:
Austin Clements 2010-11-17 14:27:20 -05:00 committed by Carl Worth
parent b9d4af4641
commit 04d633c285

2
test/test-lib.sh Normal file → Executable file
View file

@ -440,6 +440,8 @@ test_expect_equal ()
test_expect_equal_failure ()
{
exec 1>&6 2>&7 # Restore stdout and stderr
inside_subtest=
test "$#" = 3 && { prereq=$1; shift; } || prereq=
test "$#" = 2 ||
error "bug in the test script: not 2 or 3 parameters to test_expect_equal"