test: add known broken test exit code of notmuch show

This test catches a segfault on a syntactically invalid query. It also
catches a problem with my initial fix, which still returned 0.
This commit is contained in:
David Bremner 2014-01-23 08:23:59 -04:00
parent 5dd59d2a5e
commit 5c526d1737

14
test/T520-show.sh Executable file
View file

@ -0,0 +1,14 @@
#!/usr/bin/env bash
test_description='"notmuch show"'
. ./test-lib.sh
add_email_corpus
test_begin_subtest "exit code for show invalid query"
test_subtest_known_broken
notmuch show foo..
exit_code=$?
test_expect_equal 1 $exit_code
test_done