]> git.cworth.org Git - notmuch/blobdiff - test/T562-lib-database.sh
test: replace deprecated use of notmuch_database_open_verbose
[notmuch] / test / T562-lib-database.sh
index 2314efd220a2bd79575809094b8fffffa0122848..64233c37f2d0fa930f12ff069c98b7573ecfee4e 100755 (executable)
@@ -17,7 +17,9 @@ int main (int argc, char** argv)
    notmuch_status_t stat = NOTMUCH_STATUS_SUCCESS;
    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);