diff mbox

[ObjC*/NeXT/testsuite,committed] adjust gnu-api tests for Darwin < 9

Message ID 622F5CE8-BFCF-42E9-9534-43FA9F0D2D22@sandoe-acoustics.co.uk
State New
Headers show

Commit Message

Iain Sandoe Jan. 9, 2011, 5:04 p.m. UTC
The earlier versions of the  m32 NeXT library do not support the  
'modern' #2 API ..
... so we need to skip those checks for darwin < 9***.

(I've left the compile-only tests in place where possible - have to  
watch out if any are promoted to execute.)

checked on x86_64-linux, i686-darwin8, i686-darwin9, x86_64-darwin10.
applied as 168617
cheers
Iain

***
P.S. the tests _do_ work on my m64 Darwin testbed :-)

gcc/testsuite:

	* obj-c++.dg/gnu-api-2-class.mm: Skip for Darwin < 9.
	* obj-c++.dg/gnu-api-2-ivar.mm: Likewise.
	* obj-c++.dg/gnu-api-2-method.mm: Likewise.
	* obj-c++.dg/gnu-api-2-objc.mm: Likewise.
	* obj-c++.dg/gnu-api-2-object.mm: Likewise.
	* obj-c++.dg/gnu-api-2-property.mm: Likewise.
	* obj-c++.dg/gnu-api-2-protocol.mm: Likewise.
	* obj-c++.dg/gnu-api-2-sel.mm: Likewise.
	* objc.dg/gnu-api-2-class.m: Likewise.
	* objc.dg/gnu-api-2-ivar.m: Likewise.
	* objc.dg/gnu-api-2-method.m: Likewise.
	* objc.dg/gnu-api-2-objc.m: Likewise.
	* objc.dg/gnu-api-2-object.m: Likewise.
	* objc.dg/gnu-api-2-property.m: Likewise.
	* objc.dg/gnu-api-2-protocol.m: Likewise.
	* objc.dg/gnu-api-2-sel.m: Likewise.
diff mbox

Patch

Index: gcc/testsuite/ChangeLog
===================================================================
--- gcc/testsuite/ChangeLog	(revision 168616)
+++ gcc/testsuite/ChangeLog	(working copy)
@@ -1,5 +1,24 @@ 
 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
 
+	* obj-c++.dg/gnu-api-2-class.mm: Skip for Darwin < 9.
+	* obj-c++.dg/gnu-api-2-ivar.mm: Likewise.
+	* obj-c++.dg/gnu-api-2-method.mm: Likewise.
+	* obj-c++.dg/gnu-api-2-objc.mm: Likewise.
+	* obj-c++.dg/gnu-api-2-object.mm: Likewise.
+	* obj-c++.dg/gnu-api-2-property.mm: Likewise.
+	* obj-c++.dg/gnu-api-2-protocol.mm: Likewise.
+	* obj-c++.dg/gnu-api-2-sel.mm: Likewise.
+	* objc.dg/gnu-api-2-class.m: Likewise.
+	* objc.dg/gnu-api-2-ivar.m: Likewise.
+	* objc.dg/gnu-api-2-method.m: Likewise.
+	* objc.dg/gnu-api-2-objc.m: Likewise.
+	* objc.dg/gnu-api-2-object.m: Likewise.
+	* objc.dg/gnu-api-2-property.m: Likewise.
+	* objc.dg/gnu-api-2-protocol.m: Likewise.
+	* objc.dg/gnu-api-2-sel.m: Likewise.
+
+2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
+
 	* objc.dg/foreach-1.m: Skip for Darwin < 9.
 	* objc.dg/objc-foreach-4.m: Likewise.
 	* objc.dg/objc-foreach-5.m: Skip for Darwin < 9, adjust headers.
Index: gcc/testsuite/obj-c++.dg/gnu-api-2-class.mm
===================================================================
--- gcc/testsuite/obj-c++.dg/gnu-api-2-class.mm	(revision 168614)
+++ gcc/testsuite/obj-c++.dg/gnu-api-2-class.mm	(working copy)
@@ -3,6 +3,7 @@ 
   This is test 'class', covering all functions starting with 'class'.  */
 
 /* { dg-do run } */
+/* { dg-skip-if "No API#2 pre-Darwin9" { *-*-darwin[5-8]* } { "-fnext-runtime" } { "" } } */
 /* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
 
 /* To get the modern GNU Objective-C Runtime API, you include
Index: gcc/testsuite/obj-c++.dg/gnu-api-2-ivar.mm
===================================================================
--- gcc/testsuite/obj-c++.dg/gnu-api-2-ivar.mm	(revision 168614)
+++ gcc/testsuite/obj-c++.dg/gnu-api-2-ivar.mm	(working copy)
@@ -3,6 +3,7 @@ 
   This is test 'ivar', covering all functions starting with 'ivar'.  */
 
 /* { dg-do run } */
+/* { dg-skip-if "No API#2 pre-Darwin9" { *-*-darwin[5-8]* } { "-fnext-runtime" } { "" } } */
 /* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
 
 /* To get the modern GNU Objective-C Runtime API, you include
Index: gcc/testsuite/obj-c++.dg/gnu-api-2-method.mm
===================================================================
--- gcc/testsuite/obj-c++.dg/gnu-api-2-method.mm	(revision 168614)
+++ gcc/testsuite/obj-c++.dg/gnu-api-2-method.mm	(working copy)
@@ -3,6 +3,7 @@ 
   This is test 'method', covering all functions starting with 'method'.  */
 
 /* { dg-do run } */
+/* { dg-skip-if "No API#2 pre-Darwin9" { *-*-darwin[5-8]* } { "-fnext-runtime" } { "" } } */
 /* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
 
 /* To get the modern GNU Objective-C Runtime API, you include
Index: gcc/testsuite/obj-c++.dg/gnu-api-2-objc.mm
===================================================================
--- gcc/testsuite/obj-c++.dg/gnu-api-2-objc.mm	(revision 168614)
+++ gcc/testsuite/obj-c++.dg/gnu-api-2-objc.mm	(working copy)
@@ -3,6 +3,7 @@ 
   This is test 'objc', covering all functions starting with 'objc'.  */
 
 /* { dg-do run } */
+/* { dg-skip-if "No API#2 pre-Darwin9" { *-*-darwin[5-8]* } { "-fnext-runtime" } { "" } } */
 /* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
 
 /* To get the modern GNU Objective-C Runtime API, you include
Index: gcc/testsuite/obj-c++.dg/gnu-api-2-object.mm
===================================================================
--- gcc/testsuite/obj-c++.dg/gnu-api-2-object.mm	(revision 168614)
+++ gcc/testsuite/obj-c++.dg/gnu-api-2-object.mm	(working copy)
@@ -3,6 +3,7 @@ 
   This is test 'object', covering all functions starting with 'object'.  */
 
 /* { dg-do run } */
+/* { dg-skip-if "No API#2 pre-Darwin9" { *-*-darwin[5-8]* } { "-fnext-runtime" } { "" } } */
 /* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
 
 /* To get the modern GNU Objective-C Runtime API, you include
Index: gcc/testsuite/obj-c++.dg/gnu-api-2-property.mm
===================================================================
--- gcc/testsuite/obj-c++.dg/gnu-api-2-property.mm	(revision 168614)
+++ gcc/testsuite/obj-c++.dg/gnu-api-2-property.mm	(working copy)
@@ -3,6 +3,7 @@ 
   This is test 'property', covering all functions starting with 'property'.  */
 
 /* { dg-do run } */
+/* { dg-skip-if "No API#2 pre-Darwin9" { *-*-darwin[5-8]* } { "-fnext-runtime" } { "" } } */
 
 /* To get the modern GNU Objective-C Runtime API, you include
    objc/runtime.h.  */
Index: gcc/testsuite/obj-c++.dg/gnu-api-2-protocol.mm
===================================================================
--- gcc/testsuite/obj-c++.dg/gnu-api-2-protocol.mm	(revision 168614)
+++ gcc/testsuite/obj-c++.dg/gnu-api-2-protocol.mm	(working copy)
@@ -3,6 +3,7 @@ 
   This is test 'protocol', covering all functions starting with 'protocol'.  */
 
 /* { dg-do run } */
+/* { dg-skip-if "No API#2 pre-Darwin9" { *-*-darwin[5-8]* } { "-fnext-runtime" } { "" } } */
 /* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
 
 /* To get the modern GNU Objective-C Runtime API, you include
Index: gcc/testsuite/obj-c++.dg/gnu-api-2-sel.mm
===================================================================
--- gcc/testsuite/obj-c++.dg/gnu-api-2-sel.mm	(revision 168614)
+++ gcc/testsuite/obj-c++.dg/gnu-api-2-sel.mm	(working copy)
@@ -3,6 +3,7 @@ 
   This is test 'sel', covering all functions starting with 'sel'.  */
 
 /* { dg-do run } */
+/* { dg-skip-if "No API#2 pre-Darwin9" { *-*-darwin[5-8]* } { "-fnext-runtime" } { "" } } */
 
 /* To get the modern GNU Objective-C Runtime API, you include
    objc/runtime.h.  */
Index: gcc/testsuite/objc.dg/gnu-api-2-class.m
===================================================================
--- gcc/testsuite/objc.dg/gnu-api-2-class.m	(revision 168614)
+++ gcc/testsuite/objc.dg/gnu-api-2-class.m	(working copy)
@@ -3,6 +3,7 @@ 
   This is test 'class', covering all functions starting with 'class'.  */
 
 /* { dg-do run } */
+/* { dg-skip-if "No API#2 pre-Darwin9" { *-*-darwin[5-8]* } { "-fnext-runtime" } { "" } } */
 /* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
 
 /* To get the modern GNU Objective-C Runtime API, you include
Index: gcc/testsuite/objc.dg/gnu-api-2-ivar.m
===================================================================
--- gcc/testsuite/objc.dg/gnu-api-2-ivar.m	(revision 168614)
+++ gcc/testsuite/objc.dg/gnu-api-2-ivar.m	(working copy)
@@ -3,6 +3,7 @@ 
   This is test 'ivar', covering all functions starting with 'ivar'.  */
 
 /* { dg-do run } */
+/* { dg-skip-if "No API#2 pre-Darwin9" { *-*-darwin[5-8]* } { "-fnext-runtime" } { "" } } */
 /* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
 
 /* To get the modern GNU Objective-C Runtime API, you include
Index: gcc/testsuite/objc.dg/gnu-api-2-method.m
===================================================================
--- gcc/testsuite/objc.dg/gnu-api-2-method.m	(revision 168614)
+++ gcc/testsuite/objc.dg/gnu-api-2-method.m	(working copy)
@@ -3,6 +3,7 @@ 
   This is test 'method', covering all functions starting with 'method'.  */
 
 /* { dg-do run } */
+/* { dg-skip-if "No API#2 pre-Darwin9" { *-*-darwin[5-8]* } { "-fnext-runtime" } { "" } } */
 /* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
 
 /* To get the modern GNU Objective-C Runtime API, you include
Index: gcc/testsuite/objc.dg/gnu-api-2-objc.m
===================================================================
--- gcc/testsuite/objc.dg/gnu-api-2-objc.m	(revision 168614)
+++ gcc/testsuite/objc.dg/gnu-api-2-objc.m	(working copy)
@@ -3,6 +3,7 @@ 
   This is test 'objc', covering all functions starting with 'objc'.  */
 
 /* { dg-do run } */
+/* { dg-skip-if "No API#2 pre-Darwin9" { *-*-darwin[5-8]* } { "-fnext-runtime" } { "" } } */
 /* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
 
 /* To get the modern GNU Objective-C Runtime API, you include
Index: gcc/testsuite/objc.dg/gnu-api-2-object.m
===================================================================
--- gcc/testsuite/objc.dg/gnu-api-2-object.m	(revision 168614)
+++ gcc/testsuite/objc.dg/gnu-api-2-object.m	(working copy)
@@ -3,6 +3,7 @@ 
   This is test 'object', covering all functions starting with 'object'.  */
 
 /* { dg-do run } */
+/* { dg-skip-if "No API#2 pre-Darwin9" { *-*-darwin[5-8]* } { "-fnext-runtime" } { "" } } */
 /* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
 
 /* To get the modern GNU Objective-C Runtime API, you include
Index: gcc/testsuite/objc.dg/gnu-api-2-property.m
===================================================================
--- gcc/testsuite/objc.dg/gnu-api-2-property.m	(revision 168614)
+++ gcc/testsuite/objc.dg/gnu-api-2-property.m	(working copy)
@@ -3,6 +3,7 @@ 
   This is test 'property', covering all functions starting with 'property'.  */
 
 /* { dg-do run } */
+/* { dg-skip-if "No API#2 pre-Darwin9" { *-*-darwin[5-8]* } { "-fnext-runtime" } { "" } } */
 
 /* To get the modern GNU Objective-C Runtime API, you include
    objc/runtime.h.  */
Index: gcc/testsuite/objc.dg/gnu-api-2-protocol.m
===================================================================
--- gcc/testsuite/objc.dg/gnu-api-2-protocol.m	(revision 168614)
+++ gcc/testsuite/objc.dg/gnu-api-2-protocol.m	(working copy)
@@ -3,6 +3,7 @@ 
   This is test 'protocol', covering all functions starting with 'protocol'.  */
 
 /* { dg-do run } */
+/* { dg-skip-if "No API#2 pre-Darwin9" { *-*-darwin[5-8]* } { "-fnext-runtime" } { "" } } */
 /* { dg-xfail-run-if "Needs OBJC2 ABI" { *-*-darwin* && { lp64 && { ! objc2 } } } { "-fnext-runtime" } { "" } } */
 
 /* To get the modern GNU Objective-C Runtime API, you include
Index: gcc/testsuite/objc.dg/gnu-api-2-sel.m
===================================================================
--- gcc/testsuite/objc.dg/gnu-api-2-sel.m	(revision 168614)
+++ gcc/testsuite/objc.dg/gnu-api-2-sel.m	(working copy)
@@ -3,6 +3,7 @@ 
   This is test 'sel', covering all functions starting with 'sel'.  */
 
 /* { dg-do run } */
+/* { dg-skip-if "No API#2 pre-Darwin9" { *-*-darwin[5-8]* } { "-fnext-runtime" } { "" } } */
 
 /* To get the modern GNU Objective-C Runtime API, you include
    objc/runtime.h.  */