X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2Ftest-lib.sh;h=da91de8d25e1db346ecca2b682ba54910f20c71e;hp=04a4c144d091d88cfea2680107bea4d143473c37;hb=04d633c2851980797d62573626950cefb046d2f3;hpb=b9d4af4641b659693ac6c225fe8143a11b69f3af 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"