]> git.notmuchmail.org Git - notmuch/commit
test: Search for non-existent message should return nothing
authorMichal Sojka <sojkam1@fel.cvut.cz>
Mon, 1 Nov 2010 16:15:39 +0000 (17:15 +0100)
committerCarl Worth <cworth@cworth.org>
Thu, 4 Nov 2010 19:34:33 +0000 (12:34 -0700)
commitc6b59ea3c656e31e4ed6942b5d7660895fca543a
tree535e23f1ead7d0134825cbedc8921d2c3d8288e0
parentdddd3b723d1c2f454d56c262a478817f8d896707
test: Search for non-existent message should return nothing

My scripts expect that empty search result is actually empty. Since
commit 6dcb7592, even empty search prints a newline character and this
breaks my scripts.

This patch adds a test for this bug. In the test I cannot use
test_expect_equal function as $() operator suppresses the final
newline and this kind of difference is not detected.

 test/search |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
test/search