diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-11-26 13:50:29 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-11-26 13:50:29 +0200 |
commit | 30895144f680a8b9a8b4b6313edb726361d36000 (patch) | |
tree | 315b76520ecad8c6a0833298673b0c0dbc8b6036 /common/threads/makefile | |
parent | 6ac4f59699084b7c3967286b7b1f26df9f9c053d (diff) |
Save test result to a temp file instead of piping it to diff
This makes tests more robust.
Diffstat (limited to 'common/threads/makefile')
-rw-r--r-- | common/threads/makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/common/threads/makefile b/common/threads/makefile index 73174d9..71c522b 100644 --- a/common/threads/makefile +++ b/common/threads/makefile @@ -68,7 +68,9 @@ $(dist): $(test): $(driver) $(src_base)/test.std $(call message,sql $$1,$(dcf_root)/db-driver $$1, $(src_base)/test.sql) $(call message,test $<,$< --options-file $(dcf_root)/db.options \ -| diff -u $(src_base)/test.std -) +>$(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. # @@ -77,6 +79,7 @@ $(clean): \ $(addsuffix .cxx.clean,$(cxx_obj)) \ $(addsuffix .cxx.clean,$(cxx_od)) \ $(addprefix $(out_base)/,$(odb_hdr:.hxx=-odb.cxx.hxx.clean)) + $(call message,,rm -f $(out_base)/test.out) # Generated .gitignore. # |