diff options
| author | David Bremner <david@tethera.net> | 2023-09-15 09:50:03 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2023-09-23 08:29:32 -0300 |
| commit | bc38580cef3316254b1ffb15b4711b541c6f9bb3 (patch) | |
| tree | 8842cce999b150654d7aee800a9cdaf7abb480a5 /test | |
| parent | dbb5ff338511bfa6718ed144b95a689809d4bea1 (diff) | |
test: add known broken subtest for the bad config error message
This is a bit fragile w.r.t. glib changing their error message, but it
already helped me find one formatting bug, so for now I think it's
worth it, instead of just grepping for "UTF-8".
Diffstat (limited to 'test')
| -rwxr-xr-x | test/T030-config.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/T030-config.sh b/test/T030-config.sh index 2d3017da..636b5a53 100755 --- a/test/T030-config.sh +++ b/test/T030-config.sh @@ -200,4 +200,13 @@ cp initial-config bad-config printf '[query]\nq3=from:\xff\n' >>bad-config test_expect_code 1 "notmuch --config=./bad-config config list" +test_begin_subtest "Specific error message about bad utf8" +test_subtest_known_broken +notmuch --config=./bad-config config list 2>ERRORS +cat <<EOF > EXPECTED +GLib: Key file contains key “q3” with value “from:�” which is not UTF-8 +Error: unable to load config file. +EOF +test_expect_equal_file EXPECTED ERRORS + test_done |
