[m-rev.] diff: disable more string_format tests on different archs

Peter Ross pro at missioncriticalit.com
Thu Nov 28 20:14:18 AEDT 2002


Hi,


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


Estimated hours taken: 0.5
Branches: main

tests/general/Mmakefile:
    Disable string_format_special_floats on DEC OSF as the OS throws a
    floating point exception when calculating the special floats.

tests/general/string_format/Mmakefile:
    Disable string_format_o on SunOS 5.8 as well.


Index: Mmakefile
===================================================================
RCS file: /home/staff/zs/imp/tests/general/Mmakefile,v
retrieving revision 1.48
diff -u -r1.48 Mmakefile
--- Mmakefile	21 Nov 2002 14:27:09 -0000	1.48
+++ Mmakefile	28 Nov 2002 08:50:59 -0000
@@ -72,9 +72,21 @@
 		unused_arg_determinism
 
 ifneq "$(findstring profdeep,$(GRADE))" ""
-	PROGS = $(ORDINARY_PROGS)
+	PROGS0 = $(ORDINARY_PROGS)
 else
-	PROGS = $(ORDINARY_PROGS) $(EXCEPTION_PROGS)
+	PROGS0 = $(ORDINARY_PROGS) $(EXCEPTION_PROGS)
+endif
+
+	# On Dec OSF 5.1 the floating point tests of
+	# string_format_special_floats fail because the OS throws an
+	# exception when calculating both Inf and Nan.
+OSF1_FAILURES=string_format_special_floats
+
+UNAME:=$(shell uname -r -s)
+ifneq "$(findstring OSF1 V5.1,$(UNAME))" ""
+	PROGS=$(filter-out $(OSF1_FAILURES),$(PROGS0))
+else
+	PROGS=$(PROGS0)
 endif
 
 # dnf.m does not work in non-gc grades, because it uses `pragma memo'
Index: string_format/Mmakefile
===================================================================
RCS file: /home/staff/zs/imp/tests/general/string_format/Mmakefile,v
retrieving revision 1.6
diff -u -r1.6 Mmakefile
--- string_format/Mmakefile	22 Nov 2002 14:09:30 -0000	1.6
+++ string_format/Mmakefile	28 Nov 2002 09:10:42 -0000
@@ -25,7 +25,7 @@
 	PROGS0=$(STRING_FORMAT_PROGS)
 endif
 
-	# On solaris 5.7 string_format_o fails because of a buggy
+	# On solaris 5.{7,8} string_format_o fails because of a buggy
 	# sprintf implementation.
 SOLARIS_FAILURES=string_format_o
 
@@ -33,8 +33,8 @@
 	# the denormal floats aren't being printed correctly.
 OSF1_FAILURES=string_format_e string_format_f string_format_g
 
-UNAME=$(shell uname -r -s)
-ifneq "$(findstring SunOS 5.7,$(UNAME))" ""
+UNAME:=$(shell uname -r -s)
+ifeq "$(filter-out SunOS 5.7 5.8,$(UNAME))" ""
 	PROGS=$(filter-out $(SOLARIS_FAILURES),$(PROGS0))
 else
   ifneq "$(findstring OSF1 V5.1,$(UNAME))" ""

----
Peter Ross
PhD Student University of Melbourne
http://www.cs.mu.oz.au/~petdr/
--------------------------------------------------------------------------
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