[m-dev.] diff: fix arg_order_rearrangment test case failure

Peter Ross petdr at cs.mu.OZ.AU
Sun Feb 13 19:53:56 AEDT 2000


Hi,


===================================================================


Estimated hours taken: 2

tests/warnings/Mmakefile:
    Make the .res files depend on the .c files instead of the .err
    files.  This fixes a bug which was causing spurious failures of
    arg_order_rearrangement test case.  The bug was due to the .c file
    not always finishing being made (and as a side-effect generating the
    .err file) before diff was run.

Index: Mmakefile
===================================================================
RCS file: /home/staff/zs/imp/tests/warnings/Mmakefile,v
retrieving revision 1.8
diff -u -r1.8 Mmakefile
--- Mmakefile	2000/01/10 00:44:06	1.8
+++ Mmakefile	2000/02/13 08:45:30
@@ -4,7 +4,8 @@
 
 #-----------------------------------------------------------------------------#
 
-ERRORCHECKONLY_PROGS=	\
+PROGS=	\
+	arg_order_rearrangment \
 	det_infer_warning \
 	double_underscore \
 	duplicate_call \
@@ -18,11 +19,6 @@
 	unused_args_test \
 	unused_import
 
-COMPILE_PROGS=			\
-	arg_order_rearrangment
-
-PROGS=$(ERRORCHECKONLY_PROGS) $(COMPILE_PROGS)
-
 #-----------------------------------------------------------------------------#
 
 # some files need to be compiled with special options
@@ -35,22 +31,20 @@
 
 #-----------------------------------------------------------------------------#
 
-%.res:	%.exp %.err
+%.res:	%.exp %.c
 	-rm -f $@
 	diff -c $*.exp $*.err > $@
 
 #-----------------------------------------------------------------------------#
 
 DEPENDS=$(PROGS:%=%.depend)
-ERRS=	$(ERRORCHECKONLY_PROGS:%=%.err)
-CS=	$(COMPILE_PROGS:%=%.c)
 RESS=	$(PROGS:%=%.res)
 
 #-----------------------------------------------------------------------------#
 
 depend:	$(DEPENDS)
 
-check:	$(ERRS) $(CS) $(RESS)
+check:	$(RESS)
 
 all:	$(PROGS)
 

----
Peter Ross
PhD Student University of Melbourne
http://www.cs.mu.oz.au/~petdr/
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list