aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar David Bremner <bremner@debian.org>2012-08-30 22:05:51 -0300
committerGravatar David Bremner <bremner@debian.org>2012-08-30 22:05:51 -0300
commit3ba01608d7a14ecd98e371be5bacc062d67e5b7b (patch)
tree28cacfb4d6fb6f441329c526bbb4ffa4ec65a249 /test
parente01706c99375f3e3f121cf372a45a752874fd38a (diff)
test: use (format "%S") to print nil in emacs test.
The behaviour of "emacsclient --eval nil" changed from emacs23 to emacs24, and in emacs24 it prints 'nil' rather than an empty string. (format "%S" foo) produces a sexpr form of foo, and is consistent between the two versions.
Diffstat (limited to 'test')
-rwxr-xr-xtest/emacs-subject-to-filename6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/emacs-subject-to-filename b/test/emacs-subject-to-filename
index 176e6859..a0ffdfef 100755
--- a/test/emacs-subject-to-filename
+++ b/test/emacs-subject-to-filename
@@ -8,10 +8,10 @@ test_emacs '(ignore)'
# test notmuch-wash-subject-to-patch-sequence-number (subject)
test_begin_subtest "no patch sequence number"
-output=$(test_emacs '(notmuch-wash-subject-to-patch-sequence-number
- "[PATCH] A normal patch subject without numbers")'
+output=$(test_emacs '(format "%S" (notmuch-wash-subject-to-patch-sequence-number
+ "[PATCH] A normal patch subject without numbers"))'
)
-test_expect_equal "$output" ""
+test_expect_equal "$output" '"nil"'
test_begin_subtest "patch sequence number #1"
output=$(test_emacs '(notmuch-wash-subject-to-patch-sequence-number