X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2FT560-lib-error.sh;h=84ea6ccfab26026dcb96eb0a9b0ee551d92aadac;hp=02478e92113045ec5407d91972eeb08b79160203;hb=b7572ceb143773a988a4852ac3b7c85254009d0e;hpb=b21f0fcb6abc4cf399c708c45e2e33a39a820a9e diff --git a/test/T560-lib-error.sh b/test/T560-lib-error.sh index 02478e92..84ea6ccf 100755 --- a/test/T560-lib-error.sh +++ b/test/T560-lib-error.sh @@ -549,4 +549,21 @@ cat < EXPECTED EOF test_expect_equal_file EXPECTED OUTPUT +test_begin_subtest "Handle checking maildir flag with closed db (new API)" +cat c_head2 - c_tail <<'EOF' | test_C ${MAIL_DIR} + { + notmuch_status_t status; + notmuch_bool_t out; + status = notmuch_message_has_maildir_flag_st (message, 'S', &out); + printf("%d\n%d\n", message != NULL, status == NOTMUCH_STATUS_XAPIAN_EXCEPTION); + } +EOF +cat < EXPECTED +== stdout == +1 +1 +== stderr == +EOF +test_expect_equal_file EXPECTED OUTPUT + test_done