summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest/notmuch-test6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/notmuch-test b/test/notmuch-test
index c6703f0..676b66e 100755
--- a/test/notmuch-test
+++ b/test/notmuch-test
@@ -168,8 +168,10 @@ pass_if_equal ()
echo " PASS"
else
echo " FAIL"
- echo " Expected output: $expected"
- echo " Actual output: $output"
+ testname=test-$(printf "%03d" $tests)
+ echo "$expected" > $testname.expected
+ echo "$output" > $testname.output
+ diff -u $testname.expected $testname.output || true
test_failures=$((test_failures + 1))
fi
}