X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=test%2FT030-config.sh;h=636b5a53f48469262b9e3fc79b28bdca8f6ffb1e;hp=2d3017dad96b05ddb766c1b0a3505f17d2415ec9;hb=bc38580cef3316254b1ffb15b4711b541c6f9bb3;hpb=dbb5ff338511bfa6718ed144b95a689809d4bea1 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 < 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