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/T640-database-modified.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/T640-database-modified.sh')
| -rwxr-xr-x | test/T640-database-modified.sh | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/test/T640-database-modified.sh b/test/T640-database-modified.sh index 636b20c7..2c3fa735 100755 --- a/test/T640-database-modified.sh +++ b/test/T640-database-modified.sh @@ -23,14 +23,22 @@ main (int argc, char **argv) notmuch_query_t *query; notmuch_tags_t *tags; int i; + char* msg = NULL; - EXPECT0 (notmuch_database_open (path, NOTMUCH_DATABASE_MODE_READ_ONLY, &ro_db)); + EXPECT0(notmuch_database_open_with_config (argv[1], + NOTMUCH_DATABASE_MODE_READ_ONLY, + "", NULL, &ro_db, &msg)); + if (msg) fputs (msg, stderr); assert(ro_db); EXPECT0 (notmuch_database_find_message (ro_db, "${first_id}", &ro_message)); assert(ro_message); - EXPECT0 (notmuch_database_open (path, NOTMUCH_DATABASE_MODE_READ_WRITE, &rw_db)); + EXPECT0(notmuch_database_open_with_config (argv[1], + NOTMUCH_DATABASE_MODE_READ_WRITE, + "", NULL, &rw_db, &msg)); + if (msg) fputs (msg, stderr); + query = notmuch_query_create(rw_db, ""); EXPECT0 (notmuch_query_search_messages (query, &messages)); |
