X-Git-Url: https://git.cworth.org/git?p=notmuch;a=blobdiff_plain;f=test%2FT640-database-modified.sh;h=636b20c71eda0ab214f2c7b9da98e10d43398b6c;hp=92758e19f65a2770a96199f32e395db1a3e22074;hb=a06b76b9b3c1212b17d2bb170bdd511711f578f8;hpb=bd29098e47feab7886132689e4094fe6f2593311 diff --git a/test/T640-database-modified.sh b/test/T640-database-modified.sh index 92758e19..636b20c7 100755 --- a/test/T640-database-modified.sh +++ b/test/T640-database-modified.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash test_description="DatabaseModifiedError handling" -. ./test-lib.sh || exit 1 +. $(dirname "$0")/test-lib.sh || exit 1 # add enough messages to trigger the exception add_email_corpus @@ -10,11 +10,8 @@ test_begin_subtest "catching DatabaseModifiedError in _notmuch_message_ensure_me first_id=$(notmuch search --output=messages '*'| head -1 | sed s/^id://) test_C ${MAIL_DIR} < -#include #include -#include -#include + int main (int argc, char **argv) { @@ -35,7 +32,7 @@ main (int argc, char **argv) EXPECT0 (notmuch_database_open (path, NOTMUCH_DATABASE_MODE_READ_WRITE, &rw_db)); query = notmuch_query_create(rw_db, ""); - EXPECT0 (notmuch_query_search_messages_st (query, &messages)); + EXPECT0 (notmuch_query_search_messages (query, &messages)); for (; notmuch_messages_valid (messages);