X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2FT450-emacs-show.sh;h=e58124d45bcec99373d880b236e1a3f3c3b14349;hb=92454bc0935604f4a623e75dec9506c0283eee70;hp=de1755d2da890d6891db54cdff0e35bd7e986f58;hpb=9c0001de4bf3446a7cb8e6afc8dd3288be9169b7;p=notmuch diff --git a/test/T450-emacs-show.sh b/test/T450-emacs-show.sh index de1755d2..e58124d4 100755 --- a/test/T450-emacs-show.sh +++ b/test/T450-emacs-show.sh @@ -2,9 +2,11 @@ test_description="emacs notmuch-show view" . $(dirname "$0")/test-lib.sh || exit 1 +. $(dirname "$0")/test-lib-emacs.sh || exit 1 EXPECTED=$NOTMUCH_SRCDIR/test/emacs-show.expected-output +test_require_emacs add_email_corpus test_begin_subtest "Hiding Original Message region at beginning of a message" @@ -177,7 +179,7 @@ test_emacs "(let ((notmuch-command \"$PWD/notmuch_fail\")) (let ((inhibit-read-only t)) (erase-buffer))) (condition-case err (notmuch-show \"*\") - (error (message \"%s\" (second err)))) + (error (message \"%s\" (cadr err)))) (notmuch-test-wait) (with-current-buffer \"*Messages*\" (test-output \"MESSAGES\"))