This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

XFAILs for darwin8 malloc


There's this bug in the system malloc.  There's little hope of it
being fixed in darwin8, so let's XFAIL the associated tests.

Tested with 'make check-target-libstdc++-v3'.

-- 
- Geoffrey Keating <geoffk@apple.com>

===File ~/patches/libstdc++-testsuite-xfailmalloc.patch=====
2005-08-22  Geoffrey Keating  <geoffk@apple.com>

	* testsuite/23_containers/vector/resize/1.cc: XFAIL on darwin8.
	* testsuite/27_io/ios_base/storage/2.cc: Likewise.

Index: testsuite/23_containers/vector/resize/1.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/23_containers/vector/resize/1.cc,v
retrieving revision 1.7
diff -u -p -u -p -r1.7 1.cc
--- testsuite/23_containers/vector/resize/1.cc	17 Aug 2005 02:19:11 -0000	1.7
+++ testsuite/23_containers/vector/resize/1.cc	23 Aug 2005 01:14:22 -0000
@@ -25,6 +25,9 @@
 // XXX for very large allocations.  However -lmalloc seems to work.
 // See http://gcc.gnu.org/ml/libstdc++/2002-12/msg00131.html
 // { dg-options "-lmalloc" { target mips*-*-irix6* } }
+// This fails on Darwin 8 because malloc doesn't return NULL even
+// if an allocation fails (filed as Radar 3884894).
+// { dg-do run { xfail *-*-darwin8* } }
 
 #include <vector>
 #include <stdexcept>
Index: testsuite/27_io/ios_base/storage/2.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/27_io/ios_base/storage/2.cc,v
retrieving revision 1.7
diff -u -p -u -p -r1.7 2.cc
--- testsuite/27_io/ios_base/storage/2.cc	17 Aug 2005 02:25:19 -0000	1.7
+++ testsuite/27_io/ios_base/storage/2.cc	23 Aug 2005 01:14:23 -0000
@@ -25,6 +25,9 @@
 // XXX -lmalloc seems to work.
 // See http://gcc.gnu.org/ml/gcc/2002-05/msg01012.html
 // { dg-options "-lmalloc" { target mips*-*-irix6* } }
+// This fails on Darwin 8 because malloc doesn't return NULL even
+// if an allocation fails (filed as Radar 3884894).
+// { dg-do run { xfail *-*-darwin8* } }
 
 #include <sstream>
 #include <iostream>
============================================================


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]