From: Michal Sojka Date: Sun, 14 Nov 2010 21:54:28 +0000 (+0100) Subject: test: Better handling of stdout and stderr X-Git-Tag: debian/0.6_254~248 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=ac9dbb47de734afb0ddd4d0b2eb8f5027b1a7f60;hp=ac9dbb47de734afb0ddd4d0b2eb8f5027b1a7f60 test: Better handling of stdout and stderr Git-style tests (test_expect_success etc.) suppress stdout and stderr unless -v is given. Notmuch-style tests (created by test_begin_subtest and test_expect_equal) do not have this behavior so implement it the same. Additionally, for both test styles, the test-lib.sh is changed so that the content of suppressed stdout and stderr is shown in case of failed test. Finally a test for this functionality is added to basic tests. ---