[m-rev.] for review: unused_args_analysis test failing

Peter Wang wangp at students.cs.mu.OZ.AU
Tue Feb 7 15:13:43 AEDT 2006


Estimated hours taken: 0.2
Branches: main

tests/warnings/Mmakefile:
	Disable the `unused_args_analysis' test unless we are running under
	`mmake --use-mmc-make'.  Analysis files are only built by `mmc --make'
	now, and caused this test to break under mmake.

tests/warnings/unused_args_analysis.exp2:
	Add another expected output file for this test as `mmc --make' can
	result in the warnings being written out twice.

Index: warnings/Mmakefile
===================================================================
RCS file: /home/mercury1/repository/tests/warnings/Mmakefile,v
retrieving revision 1.40
diff -u -r1.40 Mmakefile
--- warnings/Mmakefile	21 Dec 2005 22:11:58 -0000	1.40
+++ warnings/Mmakefile	7 Feb 2006 04:00:05 -0000
@@ -28,12 +28,15 @@
 	singleton_test \
 	state_vars_test \
 	table_with_inline \
-	unused_args_analysis \
 	unify_f_g \
 	unused_args_test \
 	unused_import \
 	warn_stubs
 
+ifeq ($(MMAKE_USE_MMC_MAKE),yes)
+ERRORCHECK_PROGS += unused_args_analysis
+endif
+
 PROGS=$(COMPILE_PROGS) $(ERRORCHECK_PROGS) up_to_date
 
 TESTS = $(PROGS)
Index: warnings/unused_args_analysis.exp2
===================================================================
RCS file: warnings/unused_args_analysis.exp2
diff -N warnings/unused_args_analysis.exp2
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ warnings/unused_args_analysis.exp2	7 Feb 2006 04:01:30 -0000
@@ -0,0 +1,4 @@
+unused_args_analysis.m:005: In predicate `unused_args_analysis.p'/2:
+unused_args_analysis.m:005:   warning: argument 1 is unused.
+unused_args_analysis.m:005: In predicate `unused_args_analysis.p'/2:
+unused_args_analysis.m:005:   warning: argument 1 is unused.
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list