test harness corrections

Zack Weinberg zack@wolery.cumb.org
Mon Jun 26 12:13:00 GMT 2000


It has been brought to my attention that in dg.exp target selectors,
"native" is not necessarily the same thing as "*-*-*".

zw

	* gcc.dg/2000419-1.c, gcc.dg/cpp-mi.c, gcc.dg/cpp-tradwarn1.c,
	gcc.dg/cpp-unc.c: Use "target *-*-*", not "target native", in
	case we are cross-compiling.

===================================================================
Index: gcc.dg/20000419-1.c
--- gcc.dg/20000419-1.c	2000/04/19 20:53:06	1.1
+++ gcc.dg/20000419-1.c	2000/06/26 19:07:03
@@ -11,5 +11,5 @@
 __REDIRECT (a, b, c)
 __ASMNAME2 (__USER_LABEL_PREFIX__, harumph)
 
-/* { dg-bogus "used without args" "no args, 1" { target native } 11 } */
-/* { dg-bogus "used without args" "no args, 1" { target native } 12 } */
+/* { dg-bogus "used without args" "no args, 1" { target *-*-* } 11 } */
+/* { dg-bogus "used without args" "no args, 1" { target *-*-* } 12 } */
===================================================================
Index: gcc.dg/cpp-mi.c
--- gcc.dg/cpp-mi.c	2000/06/25 23:31:02	1.6
+++ gcc.dg/cpp-mi.c	2000/06/26 19:07:03
@@ -12,7 +12,7 @@
 
 /* { dg-do compile }
    { dg-options "-H" }
-   { dg-error "mic\.h\n\[^\n\]*micc\.h\n\[^\n\]*mind\.h\n\[^\n\]*mindp\.h\n\[^\n\]*mix\.h" "redundant include check" { target native } 0 } */
+   { dg-error "mic\.h\n\[^\n\]*micc\.h\n\[^\n\]*mind\.h\n\[^\n\]*mindp\.h\n\[^\n\]*mix\.h" "redundant include check" { target *-*-* } 0 } */
 
 #include "cpp-mic.h"
 #include "cpp-mic.h"
===================================================================
Index: gcc.dg/cpp-tradwarn1.c
--- gcc.dg/cpp-tradwarn1.c	2000/04/03 23:03:20	1.3
+++ gcc.dg/cpp-tradwarn1.c	2000/06/26 19:07:03
@@ -24,7 +24,7 @@
  #assert baz(quux)	/* { dg-bogus "indented" "^ #ext"     } */
  # assert quux(weeble)	/* { dg-bogus "indented" "^ # ext"    } */
 
-/* { dg-warning "ISO C does not" "extension warning" { target native } 22 } */
-/* { dg-warning "ISO C does not" "extension warning" { target native } 23 } */
-/* { dg-warning "ISO C does not" "extension warning" { target native } 24 } */
-/* { dg-warning "ISO C does not" "extension warning" { target native } 25 } */
+/* { dg-warning "ISO C does not" "extension warning" { target *-*-* } 22 } */
+/* { dg-warning "ISO C does not" "extension warning" { target *-*-* } 23 } */
+/* { dg-warning "ISO C does not" "extension warning" { target *-*-* } 24 } */
+/* { dg-warning "ISO C does not" "extension warning" { target *-*-* } 25 } */
===================================================================
Index: gcc.dg/cpp-unc.c
--- gcc.dg/cpp-unc.c	2000/04/03 23:03:20	1.3
+++ gcc.dg/cpp-unc.c	2000/06/26 19:07:03
@@ -37,4 +37,4 @@ ignored
 
 /* dg.exp doesn't read the included files for tags, so we have to
    do them explicitly here.  */
-/* { dg-error "#if" "unc1.h: unterminated #if" { target native } 3 } */
+/* { dg-error "#if" "unc1.h: unterminated #if" { target *-*-* } 3 } */


More information about the Gcc-patches mailing list