]> git.cworth.org Git - notmuch/blobdiff - test/T560-lib-error.sh
test: replace deprecated use of notmuch_database_open_verbose
[notmuch] / test / T560-lib-error.sh
index 1f4482cbe3d30cadf43ca362aa7f4ea946e22d70..1d45dc7da2bb8fb56516ce760efd840bf6429372 100755 (executable)
@@ -206,7 +206,9 @@ int main (int argc, char** argv)
    char *msg = NULL;
    int fd;
 
-   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);