aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar David Bremner <david@tethera.net>2014-01-11 20:10:21 -0400
committerGravatar David Bremner <david@tethera.net>2014-01-13 14:31:15 -0400
commitae47d617a7b4a77dcad1dc89ae5e35abe87f0081 (patch)
tree6898d9eb1770afed9c4749c40507a5d2b7580360 /test
parent89fe006ca421142bfba0969c140b633ad520832c (diff)
test: add test for syntax of emacs test library
If there is a syntax error in the emacs test library, it causes other tests to hang or crash without a useful error message. This test could be eliminated if the error reporting for emacs tests was somehow improved.
Diffstat (limited to 'test')
-rwxr-xr-xtest/T310-emacs.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/T310-emacs.sh b/test/T310-emacs.sh
index 863219d9..7dc9a8e0 100755
--- a/test/T310-emacs.sh
+++ b/test/T310-emacs.sh
@@ -7,6 +7,10 @@ EXPECTED=$TEST_DIRECTORY/emacs.expected-output
add_email_corpus
+# syntax errors in test-lib.el cause mysterious failures
+test_expect_success 'Syntax of emacs test library' \
+ "${TEST_EMACS} -Q --batch --load $TEST_DIRECTORY/test-lib.el"
+
test_begin_subtest "Basic notmuch-hello view in emacs"
test_emacs '(notmuch-hello)
(test-output)'