aboutsummaryrefslogtreecommitdiff
path: root/test/T055-path-config.sh
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2021-12-04 09:27:30 -0400
committerDavid Bremner <david@tethera.net>2021-12-04 09:27:30 -0400
commit1e7d33961e626488b09b56c8543e8edf00648670 (patch)
tree20c45ab5912db85b2aefd399c31b5318356ebf43 /test/T055-path-config.sh
parent20b2ae12183a5be79d2f3d8da7943bc358e8202c (diff)
parentd7f95724132bf658fd151630185899737e2ed829 (diff)
Merge branch 'release'
Diffstat (limited to 'test/T055-path-config.sh')
-rwxr-xr-xtest/T055-path-config.sh18
1 files changed, 17 insertions, 1 deletions
diff --git a/test/T055-path-config.sh b/test/T055-path-config.sh
index 38f72e5e..f0ce55da 100755
--- a/test/T055-path-config.sh
+++ b/test/T055-path-config.sh
@@ -306,7 +306,23 @@ EOF
output2=$(notmuch --config='' config get ${key})
notmuch config set ${key}
test_expect_equal "${output}+${output2}" "${value}+"
- ;;
+ ;&
+ split)
+ test_begin_subtest "'to' header does not crash (python-cffi) ($config)"
+ echo 'notmuch@notmuchmail.org' > EXPECTED
+ test_python <<EOF
+from notmuch2 import Database
+db=Database(config=Database.CONFIG.SEARCH)
+m=db.find('20091117232137.GA7669@griffis1.net')
+to=m.header('To')
+print(to)
+EOF
+ test_expect_equal_file EXPECTED OUTPUT
+ ;& # fall through
+ esac
+
+ case $config in
+ split|XDG*)
esac
restore_config
rm -rf home/.local