From 30895144f680a8b9a8b4b6313edb726361d36000 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 26 Nov 2010 13:50:29 +0200 Subject: Save test result to a temp file instead of piping it to diff This makes tests more robust. --- common/ctor/makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'common/ctor/makefile') diff --git a/common/ctor/makefile b/common/ctor/makefile index 4dcd10c..489ecdd 100644 --- a/common/ctor/makefile +++ b/common/ctor/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. # -- cgit v1.1