diff options
author | David Bremner <david@tethera.net> | 2020-07-22 07:51:21 -0300 |
---|---|---|
committer | David Bremner <david@tethera.net> | 2020-07-29 12:19:48 -0300 |
commit | a292461e65c2150b02fc6f9b168dc871b46d44a1 (patch) | |
tree | 4bfa861380a76f60a3317f8592917b8004312cd7 /test | |
parent | 768efe88d0523f11e7c0e732e55a3c25e9cecbc8 (diff) |
test: regression test for set_omit_excluded
Diffstat (limited to 'test')
-rwxr-xr-x | test/T564-lib-query.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/T564-lib-query.sh b/test/T564-lib-query.sh index ac08344f..ea176191 100755 --- a/test/T564-lib-query.sh +++ b/test/T564-lib-query.sh @@ -79,4 +79,24 @@ cat <<EOF > EXPECTED EOF test_expect_equal_file EXPECTED OUTPUT +test_begin_subtest "set omit_excluded on closed db" +cat c_head - c_tail <<'EOF' | test_C ${MAIL_DIR} + { + notmuch_query_t *query; + const char *str = "id:1258471718-6781-1-git-send-email-dottedmag@dottedmag.net"; + + query = notmuch_query_create (db, str); + EXPECT0(notmuch_database_close (db)); + notmuch_query_set_omit_excluded (query, NOTMUCH_EXCLUDE_ALL); + + printf("SUCCESS\n"); + } +EOF +cat <<EOF > EXPECTED +== stdout == +SUCCESS +== stderr == +EOF +test_expect_equal_file EXPECTED OUTPUT + test_done |