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/T620-lock.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/T620-lock.sh')
| -rwxr-xr-x | test/T620-lock.sh | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/test/T620-lock.sh b/test/T620-lock.sh index 8f4c380f..99cc7010 100755 --- a/test/T620-lock.sh +++ b/test/T620-lock.sh @@ -40,15 +40,25 @@ main (int argc, char **argv) if (child == 0) { notmuch_database_t *db2; + char* msg = NULL; sleep (1); - EXPECT0 (notmuch_database_open (path, NOTMUCH_DATABASE_MODE_READ_WRITE, &db2)); + + EXPECT0(notmuch_database_open_with_config (argv[1], + NOTMUCH_DATABASE_MODE_READ_WRITE, + "", NULL, &db2, &msg)); + if (msg) fputs (msg, stderr); + taggit (db2, "child"); EXPECT0 (notmuch_database_close (db2)); } else { notmuch_database_t *db; + char* msg = NULL; - EXPECT0 (notmuch_database_open (path, NOTMUCH_DATABASE_MODE_READ_WRITE, &db)); + EXPECT0(notmuch_database_open_with_config (argv[1], + NOTMUCH_DATABASE_MODE_READ_WRITE, + "", NULL, &db, &msg)); + if (msg) fputs (msg, stderr); taggit (db, "parent"); sleep (2); EXPECT0 (notmuch_database_close (db)); |
