diff options
| author | David Bremner <david@tethera.net> | 2020-06-29 22:14:10 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2020-07-03 21:04:02 -0300 |
| commit | bb51f3aa29af43fe52e4545b83f8af80ae4e3712 (patch) | |
| tree | 10198409c6cf00fa8c93617ccb870f76c2cc7c71 /test/T560-lib-error.sh | |
| parent | 87d462a20423a25eaf4b54a90bfd538dd93da675 (diff) | |
test: add known broken test for n_m_get_thread_id on closed db
This will be fixed in the next commit.
Diffstat (limited to 'test/T560-lib-error.sh')
| -rwxr-xr-x | test/T560-lib-error.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/T560-lib-error.sh b/test/T560-lib-error.sh index 5a5f66b8..b5600851 100755 --- a/test/T560-lib-error.sh +++ b/test/T560-lib-error.sh @@ -358,4 +358,22 @@ cat <<EOF > EXPECTED EOF test_expect_equal_file EXPECTED OUTPUT +backup_database +test_begin_subtest "Handle getting thread-id from closed database" +test_subtest_known_broken +cat c_head2 - c_tail <<'EOF' | test_C ${MAIL_DIR} + { + const char *id2; + id2=notmuch_message_get_thread_id (message); + printf("%s\n%d\n", id, id2==NULL); + } +EOF +cat <<EOF > EXPECTED +== stdout == +1258471718-6781-1-git-send-email-dottedmag@dottedmag.net +1 +== stderr == +EOF +test_expect_equal_file EXPECTED OUTPUT + test_done |
