unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH 1/4] Fix handling of broken tests.
@ 2010-11-17 19:27 Austin Clements
  0 siblings, 0 replies; only message in thread
From: Austin Clements @ 2010-11-17 19:27 UTC (permalink / raw)
  To: notmuch

Make sure to close the subtest for test_expect_equal_failure, just
like in test_expect_equal.
---
 test/test-lib.sh |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
 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 04a4c14..da91de8
--- 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"
-- 
1.7.2.3

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2010-11-17 19:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-17 19:27 [PATCH 1/4] Fix handling of broken tests Austin Clements

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).