[PATCH 1/2] test/libconfig: save and restore config file

2021-12-11 Thread David Bremner
Currently the config file is unusable for further tests requiring a valid database path. --- test/T590-libconfig.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/T590-libconfig.sh b/test/T590-libconfig.sh index eb303444..089b4e58 100755 --- a/test/T590-libconfig.sh +++ b/test/T590-lib

[PATCH 2/2] test/libconfig: add two tests for the config = "" case

2021-12-11 Thread David Bremner
If notmuch_database_open_with_config finds a database, but that database is not in a legacy, non-split configuration, then it currently incorrectly deduces the mail root and returns SUCCESS. Add to two tests to demonstrate this bug. --- test/T590-libconfig.sh | 40 +