]> git.cworth.org Git - notmuch/blobdiff - test/T564-lib-query.sh
test: replace deprecated use of notmuch_database_open_verbose
[notmuch] / test / T564-lib-query.sh
index ff1d49849bc571775d69a9af3d46ddaf89d23cb7..53a63bf61ac29611d390a355e8ddf35f2b3b8f4d 100755 (executable)
@@ -17,7 +17,9 @@ int main (int argc, char** argv)
    notmuch_status_t stat;
    char *msg = NULL;
 
-   stat = notmuch_database_open_verbose (argv[1], NOTMUCH_DATABASE_MODE_READ_WRITE, &db, &msg);
+   stat = notmuch_database_open_with_config (argv[1],
+                                            NOTMUCH_DATABASE_MODE_READ_WRITE,
+                                            NULL, NULL, &db, &msg);
    if (stat != NOTMUCH_STATUS_SUCCESS) {
      fprintf (stderr, "error opening database: %d %s\n", stat, msg ? msg : "");
      exit (1);