]> git.cworth.org Git - notmuch/blobdiff - test/T568-lib-thread.sh
test: replace deprecated use of notmuch_database_open_verbose
[notmuch] / test / T568-lib-thread.sh
index b45836cdd989ca6ac25bc58bc15f7a13fa38dd63..b4c24ca23b049b4ec8e06a67d28e9d7fb1bae407 100755 (executable)
@@ -36,7 +36,9 @@ int main (int argc, char** argv)
    notmuch_query_t *query = NULL;
    const char *id = "${THREAD}";
 
-   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);