[m-rev.] diff: fix spurious failures of tests/debugger/nondet_stack

Zoltan Somogyi zs at cs.mu.OZ.AU
Wed Jan 9 18:02:59 AEDT 2002


tests/debugger/Mmakefile:
	Set the optimization level explicitly for the nondet_stack test case,
	since different optimization levels can lead to different stack frame
	sizes. This test case tests only code in the runtime, so this is OK.

Zoltan.

cvs diff: Diffing .
Index: Mmakefile
===================================================================
RCS file: /home/mercury1/repository/tests/debugger/Mmakefile,v
retrieving revision 1.60
diff -u -b -r1.60 Mmakefile
--- Mmakefile	2001/12/19 15:08:29	1.60
+++ Mmakefile	2002/01/08 02:20:54
@@ -48,7 +48,8 @@
 # By default, we reclaim heap on failure in non-Boehm-gc grades.
 # The extra stack slots required for this reclamation cause spurious
 # differences from the expected output on the nondet_stack test case.
-MCFLAGS-nondet_stack = --no-reclaim-heap-on-failure
+# The optimization level also affects stack frame sizes.
+MCFLAGS-nondet_stack = -O2 --no-reclaim-heap-on-failure
 
 MCFLAGS = --trace deep
 MLFLAGS = --trace
cvs diff: Diffing declarative
--------------------------------------------------------------------------
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