]> git.notmuchmail.org Git - notmuch/blobdiff - test/T640-database-modified.sh
build: drop support for xapian versions less than 1.4
[notmuch] / test / T640-database-modified.sh
index 92758e19f65a2770a96199f32e395db1a3e22074..274105c708fa2d4c73429520e3811fcdce6debff 100755 (executable)
@@ -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);