X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2FT640-database-modified.sh;h=274105c708fa2d4c73429520e3811fcdce6debff;hp=92758e19f65a2770a96199f32e395db1a3e22074;hb=00cdfe10717020423870fdaf56e973db9aba9f5a;hpb=bd29098e47feab7886132689e4094fe6f2593311 diff --git a/test/T640-database-modified.sh b/test/T640-database-modified.sh index 92758e19..274105c7 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 @@ -35,7 +35,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);