diff options
| author | David Bremner <david@tethera.net> | 2022-05-21 15:06:30 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2022-05-29 07:36:44 -0300 |
| commit | 32f299fe137a4ac731750d576e65337b395a42ef (patch) | |
| tree | b40219069acb07b65e8ffbd1de4b3badc5105974 /test/T720-lib-lifetime.sh | |
| parent | f6e7a9dde5a7d9c2fa390a15888704c31852a538 (diff) | |
test: replace deprecated use of notmuch_database_open
This is a bit more involved than replacing the use of
notmuch_database_open_verbose, as we have to effectively inline the
definition of notmuch_database_open.
Diffstat (limited to 'test/T720-lib-lifetime.sh')
| -rwxr-xr-x | test/T720-lib-lifetime.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/T720-lib-lifetime.sh b/test/T720-lib-lifetime.sh index 3d94d4df..e5afeaa2 100755 --- a/test/T720-lib-lifetime.sh +++ b/test/T720-lib-lifetime.sh @@ -23,7 +23,13 @@ int main (int argc, char** argv) { notmuch_database_t *db; notmuch_status_t stat; - stat = notmuch_database_open (argv[1], NOTMUCH_DATABASE_MODE_READ_ONLY, &db); + char* msg = NULL; + + stat = notmuch_database_open_with_config (argv[1], + NOTMUCH_DATABASE_MODE_READ_ONLY, + "", NULL, &db, &msg); + if (msg) fputs (msg, stderr); + if (stat != NOTMUCH_STATUS_SUCCESS) { fprintf (stderr, "error opening database: %d\n", stat); exit (1); |
