Tweak invalid cpp test
Neil Booth
neilb@earthling.net
Sat Nov 25 07:39:00 GMT 2000
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 } */
More information about the Gcc-patches
mailing list