mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-24 11:58:10 +01:00
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:
parent
5dd59d2a5e
commit
5c526d1737
1 changed files with 14 additions and 0 deletions
14
test/T520-show.sh
Executable file
14
test/T520-show.sh
Executable 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
|
Loading…
Reference in a new issue