aboutsummaryrefslogtreecommitdiff
path: root/tracer/transaction/makefile
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-11-26 13:50:29 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-11-26 13:50:29 +0200
commit30895144f680a8b9a8b4b6313edb726361d36000 (patch)
tree315b76520ecad8c6a0833298673b0c0dbc8b6036 /tracer/transaction/makefile
parent6ac4f59699084b7c3967286b7b1f26df9f9c053d (diff)
Save test result to a temp file instead of piping it to diff
This makes tests more robust.
Diffstat (limited to 'tracer/transaction/makefile')
-rw-r--r--tracer/transaction/makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/tracer/transaction/makefile b/tracer/transaction/makefile
index 12ca226..2a3baee 100644
--- a/tracer/transaction/makefile
+++ b/tracer/transaction/makefile
@@ -52,7 +52,9 @@ $(dist):
# Test.
#
$(test): $(driver) $(src_base)/test.std
- $(call message,test $<,$< | diff -u $(src_base)/test.std -)
+ $(call message,test $<,$< >$(out_base)/test.out)
+ $(call message,,diff -u $(src_base)/test.std $(out_base)/test.out)
+ $(call message,,rm -f $(out_base)/test.out)
# Clean.
#
@@ -60,6 +62,7 @@ $(clean): \
$(driver).o.clean \
$(addsuffix .cxx.clean,$(cxx_obj)) \
$(addsuffix .cxx.clean,$(cxx_od))
+ $(call message,,rm -f $(out_base)/test.out)
# Generated .gitignore.
#