]> git.cworth.org Git - obsolete/notmuch-old/commit
test: Clear test-output output file before running Emacs tests
authorAustin Clements <amdragon@MIT.EDU>
Sat, 29 Sep 2012 17:55:12 +0000 (13:55 -0400)
committerDavid Bremner <bremner@debian.org>
Sun, 30 Sep 2012 14:40:22 +0000 (11:40 -0300)
commit61a9448b58ca1320d97cfe580155cf23b5b9ad62
tree70dd9b4dd093c76a488cce2437d9a6f49997abe9
parent1ecacab28fe10abf367ce4d6e4bac4a0642861e9
test: Clear test-output output file before running Emacs tests

Most Emacs tests end with a call to (test-output), which saves the
buffer to a filed called OUTPUT.  Previously, if the test code failed
with an exception before this call, the test framework would then
compare against the OUTPUT file from the last Emacs test, resulting in
confusing diffs.

This requires one tweak to an emacs test that made two calls to
test_emacs and expected an OUTPUT file from the first call.  We simply
reverse the order of the test_emacs calls.
test/emacs
test/test-lib.sh