mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-02-17 23:53:15 +01:00
test: regression test for set_omit_excluded
This commit is contained in:
parent
768efe88d0
commit
a292461e65
1 changed files with 20 additions and 0 deletions
|
@ -79,4 +79,24 @@ cat <<EOF > EXPECTED
|
||||||
EOF
|
EOF
|
||||||
test_expect_equal_file EXPECTED OUTPUT
|
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
|
test_done
|
||||||
|
|
Loading…
Add table
Reference in a new issue