]> git.notmuchmail.org Git - notmuch/blobdiff - test/T450-emacs-show.sh
complete ghost-on-removal-when-shared-thread-exists
[notmuch] / test / T450-emacs-show.sh
index 2a3a5356303a89ccfad1efe26f04bb2bf3dbbfe1..0342a8745b3d136e942809768a1a5ee6b0368419 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/env bash
 
 test_description="emacs notmuch-show view"
-. ./test-lib.sh
+. ./test-lib.sh || exit 1
 
 EXPECTED=$TEST_DIRECTORY/emacs-show.expected-output
 
@@ -173,7 +173,8 @@ exit 1
 EOF
 chmod a+x notmuch_fail
 test_emacs "(let ((notmuch-command \"$PWD/notmuch_fail\"))
-              (with-current-buffer \"*Messages*\" (erase-buffer))
+              (with-current-buffer \"*Messages*\"
+                  (let ((inhibit-read-only t)) (erase-buffer)))
               (condition-case err
                   (notmuch-show \"*\")
                 (error (message \"%s\" (second err))))