mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
test: add known broken test for indexing relative path
The current code seems to look for the path relative to the current working directory, rather than the mail store root.
This commit is contained in:
parent
9ab3e2e77d
commit
be3f4aec3f
1 changed files with 17 additions and 1 deletions
|
@ -238,7 +238,6 @@ A Xapian exception occurred creating a directory: Database has been closed.
|
|||
EOF
|
||||
test_expect_equal_file EXPECTED OUTPUT
|
||||
|
||||
# XXX TODO: test with relative path
|
||||
test_begin_subtest "index file with a closed db"
|
||||
cat c_head - c_tail <<'EOF' | test_C ${MAIL_DIR}
|
||||
{
|
||||
|
@ -257,4 +256,21 @@ A Xapian exception occurred finding message: Database has been closed.
|
|||
EOF
|
||||
test_expect_equal_file EXPECTED OUTPUT
|
||||
|
||||
generate_message '[filename]=relative_path'
|
||||
test_begin_subtest "index file (relative path)"
|
||||
test_subtest_known_broken
|
||||
cat c_head - c_tail <<'EOF' | test_C ${MAIL_DIR}
|
||||
{
|
||||
notmuch_message_t *msg;
|
||||
stat = notmuch_database_index_file (db, "relative_path", NULL, &msg);
|
||||
printf ("%d\n", stat == NOTMUCH_STATUS_SUCCESS);
|
||||
}
|
||||
EOF
|
||||
cat <<EOF > EXPECTED
|
||||
== stdout ==
|
||||
1
|
||||
== stderr ==
|
||||
EOF
|
||||
test_expect_equal_file EXPECTED OUTPUT
|
||||
|
||||
test_done
|
||||
|
|
Loading…
Reference in a new issue