mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 19:08:09 +01:00
test: add known broken test for n_directory_get_child_files
This is a clone of the one for get_child_directories
This commit is contained in:
parent
9668583a49
commit
3890d98966
1 changed files with 18 additions and 0 deletions
|
@ -57,4 +57,22 @@ A Xapian exception occurred at lib/directory.cc:XXX: Database has been closed
|
||||||
EOF
|
EOF
|
||||||
test_expect_equal_file EXPECTED OUTPUT
|
test_expect_equal_file EXPECTED OUTPUT
|
||||||
|
|
||||||
|
test_begin_subtest "get child filenames for a closed db"
|
||||||
|
test_subtest_known_broken
|
||||||
|
cat c_head - c_tail <<'EOF' | test_C ${MAIL_DIR}
|
||||||
|
{
|
||||||
|
notmuch_filenames_t *children;
|
||||||
|
children = notmuch_directory_get_child_files (dir);
|
||||||
|
printf ("%d\n", children == NULL);
|
||||||
|
stat = NOTMUCH_STATUS_XAPIAN_EXCEPTION;
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
cat <<EOF > EXPECTED
|
||||||
|
== stdout ==
|
||||||
|
1
|
||||||
|
== stderr ==
|
||||||
|
A Xapian exception occurred at lib/directory.cc:XXX: Database has been closed
|
||||||
|
EOF
|
||||||
|
test_expect_equal_file EXPECTED OUTPUT
|
||||||
|
|
||||||
test_done
|
test_done
|
||||||
|
|
Loading…
Reference in a new issue