notmuch/test/T520-show.sh
David Bremner ecbb29e8ce notmuch-show: detect NULL pointer returned from notmuch_query_search_threads
We want to return an error status, not 0 or (worse) segfault.
2014-01-24 20:24:11 -04:00

13 lines
218 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"
notmuch show foo..
exit_code=$?
test_expect_equal 1 $exit_code
test_done