From 04d633c2851980797d62573626950cefb046d2f3 Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Wed, 17 Nov 2010 14:27:20 -0500 Subject: [PATCH] Fix handling of broken tests. Make sure to close the subtest for test_expect_equal_failure, just like in test_expect_equal. --- test/test-lib.sh | 2 ++ 1 file changed, 2 insertions(+) mode change 100644 => 100755 test/test-lib.sh diff --git a/test/test-lib.sh b/test/test-lib.sh old mode 100644 new mode 100755 index 04a4c144..da91de8d --- a/test/test-lib.sh +++ b/test/test-lib.sh @@ -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" -- 2.26.2