notmuch/test/T520-show.sh
David Bremner 5c526d1737 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.
2014-01-24 20:19:50 -04:00

14 lines
244 B
Bash
Executable file

#!/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