aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2021-09-30 15:59:54 -0300
committerDavid Bremner <david@tethera.net>2021-12-04 12:17:09 -0400
commit18cdd21b8b2ef056062700607eade43909c32cd2 (patch)
tree9aa1d32d40c23c74794c998bfa8cdcb93f4558c9 /test
parent482bd3a46de34c5f6c5cae3696fd56ffdadc6299 (diff)
lib/config: use g_key_file_get_string to read config values
Unlike the previous g_key_file_get_value, this version processes escape codes for whitespace and \. The remaining two broken tests from the last commit are because "notmuch config get" treats every value as a list, and thus the previously introduces stripping of leading whitespace applies.
Diffstat (limited to 'test')
-rwxr-xr-xtest/T030-config.sh2
1 files changed, 0 insertions, 2 deletions
diff --git a/test/T030-config.sh b/test/T030-config.sh
index 1fdde9fe..43bbce31 100755
--- a/test/T030-config.sh
+++ b/test/T030-config.sh
@@ -85,13 +85,11 @@ output=$(notmuch config get foo.bar)
test_expect_equal "${output}" "thing other"
test_begin_subtest "Round trip config item with embedded backslash"
-test_subtest_known_broken
notmuch config set foo.bar 'thing\other'
output=$(notmuch config get foo.bar)
test_expect_equal "${output}" "thing\other"
test_begin_subtest "Round trip config item with embedded NL/CR"
-test_subtest_known_broken
notmuch config set foo.bar 'thing
other'
output=$(notmuch config get foo.bar)