re PR testsuite/25241 ([C++] DejaGNU does not distinguish between errors and warnings)
authorManuel López-Ibáñez <manu@gcc.gnu.org>
Tue, 5 Jun 2007 22:30:24 +0000 (22:30 +0000)
committerManuel López-Ibáñez <manu@gcc.gnu.org>
Tue, 5 Jun 2007 22:30:24 +0000 (22:30 +0000)
2007-06-05  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>

PR testsuite/25241
testsuite/
* gcc.dg/invalid-call-1.c: Use dg-warning to match the warning and
dg-message to match de note.
* gcc.dg/pr26570.c: Use dg-message for a note.
* gcc.dg/pr29254.c: Use dg-message for generic output and use
dg-error instead of dg-warning because of -Werror.
* gcc.dg/glibc-uclibc-1.c: Use dg-message for output that is
neither an error, nor a warning.
* gcc.dg/glibc-uclibc-2.c: Likewise
* gcc.dg/cpp/19940712-1.c: Likewise.

From-SVN: r125347

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp/19940712-1.c
gcc/testsuite/gcc.dg/glibc-uclibc-1.c
gcc/testsuite/gcc.dg/glibc-uclibc-2.c
gcc/testsuite/gcc.dg/invalid-call-1.c
gcc/testsuite/gcc.dg/pr26570.c
gcc/testsuite/gcc.dg/pr29254.c

index 067322c6a2a7ed6c5dc8f14bfb343dedfdf8837a..10ca748d454c90721d0c6f9e98a25a7cf8256060 100644 (file)
@@ -1,3 +1,16 @@
+2007-06-05  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
+
+       PR testsuite/25241
+       * gcc.dg/invalid-call-1.c: Use dg-warning to match the warning and
+       dg-message to match de note.
+       * gcc.dg/pr26570.c: Use dg-message for a note.
+       * gcc.dg/pr29254.c: Use dg-message for generic output and use
+       dg-error instead of dg-warning because of -Werror.
+       * gcc.dg/glibc-uclibc-1.c: Use dg-message for output that is
+       neither an error, nor a warning.
+       * gcc.dg/glibc-uclibc-2.c: Likewise
+       * gcc.dg/cpp/19940712-1.c: Likewise.
+
 2007-06-05  Joerg Wunsch  <j.gnu@uriah.heep.sax.de>
 
        PR preprocessor/23479
index d5ed88973e32c45f4fe472c9415c7deed1309099..98bcd767966d42b2a294f8269e3099fcef5dfacb 100644 (file)
@@ -5,8 +5,8 @@
 /* { dg-error "unterminated comment" "" { target *-*-* } 4 } */
 /* { dg-error "unterminated comment" "header error" { target *-*-* } 8 } */
 
-#include "19940712-1.h"          /* { dg-error "" }  // In file included from: */
-#include "19940712-1a.h"  /* { dg-error "" }  // In file included from: */
+#include "19940712-1.h"          /* { dg-message "" }  // In file included from: */
+#include "19940712-1a.h"  /* { dg-message "" }  // In file included from: */
 #include "19940712-1b.h"
 
 /* comment start in comment error
index 46c417536dcd73c5a01f326a6717c8d4c8befce4..a3764046b0d4aead4c42c31c9173ae177ff97a1e 100644 (file)
@@ -3,4 +3,4 @@
 /* { dg-do link { target *-*-linux* } } */
 /* { dg-options "-mglibc -muclibc" } */
 
-/* { dg-error "-mglibc and -muclibc used together" "" { target *-*-* } 0 } */
+/* { dg-message "-mglibc and -muclibc used together" "" { target *-*-* } 0 } */
index 344fb065e8f01733ad0b557b10427c09516d008a..cb52260730bd1cf509b61e4288f41a1bcd559eda 100644 (file)
@@ -3,4 +3,4 @@
 /* { dg-do link { target *-*-linux* } } */
 /* { dg-options "-muclibc -mglibc" } */
 
-/* { dg-error "-mglibc and -muclibc used together" "" { target *-*-* } 0 } */
+/* { dg-message "-mglibc and -muclibc used together" "" { target *-*-* } 0 } */
index 2a7d372ca6adab2c80ca3f2d1e9e4010ba81e889..1d19c56a9720d778bd2545ed3d29842531d1f703 100644 (file)
@@ -13,5 +13,6 @@ char* cptr;
 void foo()
 {
   cptr = mar(6);
-  ((char *(*)(void *,int (*)(void *,unsigned char **),char**))((fp)bar))(0,0,(void*)(0)); /* { dg-message "" "non-compatible type" } */
+  ((char *(*)(void *,int (*)(void *,unsigned char **),char**))((fp)bar))(0,0,(void*)(0)); /* { dg-warning "function called through a non-compatible type" "non-compatible type" } */
+  /* { dg-message "note: if this code is reached, the program will abort" "" { target *-*-* } 16 } */
 }
index efae8d6ee7446df0de200d0a8b31d2f7cf77cd5e..5f67c00738961e3afe83c6dad46bef5497b04206 100644 (file)
@@ -4,6 +4,6 @@
 unsigned test (unsigned a, unsigned b)
 {
   return a / b;
-} /* { dg-warning "execution counts estimated" } */
+} /* { dg-message "note: \[^\n\]*execution counts estimated" } */
 
 /* { dg-final { cleanup-coverage-files } } */
index 6259089d4fbae71f6dcf59dad60ff6140d5c7988..98846a92090974fcc10c59092df6c7479d2f3b15 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O3 -Werror" } */
-/* { dg-warning "warnings being treated as errors" "" {target "*-*-*"} 0 } */
+/* { dg-message "warnings being treated as errors" "" {target "*-*-*"} 0 } */
 
 list_compare (int * list1)
 {
@@ -18,5 +18,5 @@ value_compare (int * a)
 
 func2 (const int * fb)
 {
-  func1 ((int *) fb); /* { dg-warning "discards qualifiers" } */
+  func1 ((int *) fb); /* { dg-error "discards qualifiers" } */
 }