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]

Tweak invalid cpp test


One of the tests was relying on a locale-dependent error message.  I
happened to run it under a Japanese locale, causing the test to fail
incorrectly.  This just "corrects" this.

Neil.

        * gcc.dg/cpp/include2.c: Make test locale independent.

Index: testsuite/gcc.dg/cpp/include2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/cpp/include2.c,v
retrieving revision 1.1
diff -u -p -r1.1 include2.c
--- include2.c	2000/11/04 11:14:54	1.1
+++ include2.c	2000/11/25 15:37:49
@@ -10,6 +10,8 @@
 #include <silly\>>  /* { dg-warning "extra tokens" "" } */
 #include "silly\""  /* { dg-error "missing" "" } */
 
-/* { dg-error "No such file" "" { target *-*-* } 10 } */
-/* { dg-error "No such file" "" { target *-*-* } 11 } */
+/* These first 2 errors are No such file or directory.  However, this
+   message is locale-dependent, so don't test for it.  */
+/* { dg-error "silly" "" { target *-*-* } 10 } */
+/* { dg-error "silly" "" { target *-*-* } 11 } */
 /* { dg-warning "extra tokens" "" { target *-*-* } 11 } */


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