aboutsummaryrefslogtreecommitdiff
path: root/test/emacs-large-search-buffer
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2011-03-10 15:18:40 -0800
committerCarl Worth <cworth@cworth.org>2011-03-10 15:18:40 -0800
commit44d3c57e2a62e8d8a299894619389d90c2b97a14 (patch)
tree44f14761494c684350996c67d2923a7a5e0d05a5 /test/emacs-large-search-buffer
parent4e414e2a5a72e8345df6371b3524030d07c2ce96 (diff)
emacs: Display any unexpected output from notmuch search
Rather than silently swallowing unexpected output, the emacs interface will now display it. This will allow error messages to actually arrive at the emacs interface (though not in an especially pretty way). This also allows for easier investigation of the inadvertent swallowing of search results that span page boundaries (as demonstrated by the recent added emacs-large-search-buffer test). The page-boundary bug has been present since a commit from 2009-11-24: 93af7b574598637c2766dd1f8ef343962c9a8efb Many thanks to Thomas Schwinge for tracking that bug down and contributing the test for it.
Diffstat (limited to 'test/emacs-large-search-buffer')
-rwxr-xr-xtest/emacs-large-search-buffer2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/emacs-large-search-buffer b/test/emacs-large-search-buffer
index f827bb1..78b3ae8 100755
--- a/test/emacs-large-search-buffer
+++ b/test/emacs-large-search-buffer
@@ -21,7 +21,7 @@ notmuch new > /dev/null
test_begin_subtest 'Comparing emacs result to "notmuch search"'
expected="$(notmuch search '*' | sed -e 's/^thread:[0-9a-f]* //' -e 's/;//' -e 's/xx*/[BLOB]/')
End of search results."
-output=$(test_emacs '(notmuch-search "*") (notmuch-test-wait) (message (buffer-string))' 2>&1 | sed -e s', *, ,g' -e 's/xx*/[BLOB]/')
+output=$(test_emacs '(notmuch-search "*") (notmuch-test-wait) (message (buffer-string))' 2>&1 | sed -e s', *, ,g' -e 's/xxx*/[BLOB]/g')
test_expect_equal "$output" "$expected"
test_done