]> git.notmuchmail.org Git - notmuch/commit - test/test-lib.sh
test: add test_expect_equal_file_nonempty
authorDavid Bremner <david@tethera.net>
Wed, 4 Aug 2021 10:42:32 +0000 (07:42 -0300)
committerDavid Bremner <david@tethera.net>
Sat, 21 Aug 2021 21:55:41 +0000 (14:55 -0700)
commit474a7f8e6506ed5c027a5f8e4c11261cda5a17dc
tree4cc5c0afb551a644f1e904b507b3fccb7bea465f
parent78045301e7dd3caf82d5efc241d10b351be33b28
test: add test_expect_equal_file_nonempty

A common bug in tests is that the code used to generate the EXPECTED
file fails, generating no output. When the code generating the OUTPUT
file fails in the same way, the test passes, even though there is a
failure being hidden. Add a new test function that guards against
this.
test/test-lib.sh