[m-rev.] diff: disable some failing IL tests in tests/hard_coded

Fergus Henderson fjh at cs.mu.OZ.AU
Wed Oct 23 15:24:27 AEST 2002


Estimated hours taken: 0.25
Branches: main

tests/hard_coded/Mmakefile:
	Disable various tests for the IL and Java grades:
		- factt_non and compare_representation,
		  because the features that these test are
		  only supported for the LLDS back-end
		- type_tables, because the test itself is LLDS-specific
		- the nondet C tests, because IL and Java don't
		  support the C interface.

Workspace: /mnt/roy/fjh/traveller/mercury
Index: tests/hard_coded/Mmakefile
===================================================================
RCS file: /home/mercury1/repository/tests/hard_coded/Mmakefile,v
retrieving revision 1.170
diff -u -d -r1.170 Mmakefile
--- tests/hard_coded/Mmakefile	2002/10/23 05:07:08	1.170
+++ tests/hard_coded/Mmakefile	2002/10/23 05:22:20
@@ -190,20 +190,20 @@
 	EXCEPTION_PROGS =
 endif
 
-# compare_representation does not work in the hl* grades (e.g. hlc.gc),
+# compare_representation does not work in the MLDS grades (e.g. hlc.gc),
 # because comparison of closures gives "Sorry, not implemented" when
-# HIGHLEVEL_CODE is set.
+# MR_HIGHLEVEL_CODE is set.
 #
-# factt_non does not work in the hl* grades because the code for nondet
+# factt_non does not work in the MLDS grades because the code for nondet
 # fact tables assumes that we're using the LLDS back-end. Also, fact tables
 # and deep profiling do not (yet) mix.
 #
-# type_tables does not work in the hl* grades because the test itself
+# type_tables does not work in the MLDS grades because the test itself
 # is a quick hack that assumes the use of the LLDS backend; it should
 # be replaced by a test that exercises functionality enabled by type tables.
 # However, this must wait for the implementation of that functionality.
 
-ifeq "$(findstring hl,$(GRADE))" ""
+ifeq "$(filter hl% il% java%,$(GRADE))" ""
 	ifeq "$(findstring profdeep,$(GRADE))" ""
 		BACKEND_PROGS_2 = \
 			factt_non
@@ -223,12 +223,19 @@
 # The MLDS back-end doesn't support nondet C in trailing grades,
 # or in no-GC grades (except with --no-reclaim-heap-on-failure).
 # We also don't support nondet C in deep profiling grades.
-ifeq "$(findstring hl,$(GRADE))$(findstring .tr,$(GRADE))" "hl.tr"
+# These tests are also not supported in IL and Java grades,
+# since those back-ends don't support the C interface at all.
+# (XXX perhaps we should add analagous tests of the nondet IL, C#, MC++,
+# and [evenetually] Java interfaces?)
+ifneq "$(filter il% java%,$(GRADE))" ""
 	NONDET_C_PROGS =
 else
-   ifeq "$(findstring hl,$(GRADE))$(findstring .gc,$(GRADE))" "hl"
+  ifeq "$(findstring hl,$(GRADE))$(findstring .tr,$(GRADE))" "hl.tr"
 	NONDET_C_PROGS =
-   else
+  else
+    ifeq "$(findstring hl,$(GRADE))$(findstring .gc,$(GRADE))" "hl"
+	NONDET_C_PROGS =
+    else
 	ifneq "$(findstring profdeep,$(GRADE))" ""
 		NONDET_C_PROGS =
 	else
@@ -237,7 +244,8 @@
 			nondet_c \
 			nondet_pragma_c_bug
 	endif
-   endif
+    endif
+  endif
 endif
 
 PROGS = $(ORDINARY_PROGS) $(CLOSURE_LAYOUT_PROGS) $(EXCEPTION_PROGS) \

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
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