small testsuite framework fix
Manuel López-Ibáñez
lopezibanez@gmail.com
Sat Feb 24 01:05:00 GMT 2007
:ADDPATCH testsuite:
This patch fixes the testsuite test-framework: the "no effect" warning
is not enabled by Wextra but by Wunused-value. Also, the command in
the README was not accurate.
Bootstrapped, regression tested and framework tested.
Cheers,
Manuel.
2007-02-23 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
* gcc.test-framework/README: Correct command.
* gcc.test-framework/dg-outexistsnot-exp-P.c: Replace -W with -Wunused-value.
* gcc.test-framework/dg-outexists-exp-F.c: Likewise.
-------------- next part --------------
Index: gcc/testsuite/gcc.test-framework/dg-outexistsnot-exp-P.c
===================================================================
--- gcc/testsuite/gcc.test-framework/dg-outexistsnot-exp-P.c (revision 122159)
+++ gcc/testsuite/gcc.test-framework/dg-outexistsnot-exp-P.c (working copy)
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-W -Werror" } */
+/* { dg-options "-Wunused-value -Werror" } */
int main (void) { 0; } /* { dg-warning "no effect" } */
Index: gcc/testsuite/gcc.test-framework/README
===================================================================
--- gcc/testsuite/gcc.test-framework/README (revision 122159)
+++ gcc/testsuite/gcc.test-framework/README (working copy)
@@ -19,7 +19,7 @@ To run these tests:
To check the results:
TF=${SRC}/gcc/testsuite/gcc.test-framework
- awk -f ${TF}/test-framework.awk gcc/testsuite/gcc.sum
+ awk -f ${TF}/test-framework.awk gcc/testsuite/gcc/gcc.sum
The awk script prints unexpected results followed by the number of tests
that passed and failed.
Index: gcc/testsuite/gcc.test-framework/dg-outexists-exp-F.c
===================================================================
--- gcc/testsuite/gcc.test-framework/dg-outexists-exp-F.c (revision 122159)
+++ gcc/testsuite/gcc.test-framework/dg-outexists-exp-F.c (working copy)
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-W -Werror" } */
+/* { dg-options "-Wunused-value -Werror" } */
int main (void) { 0; } /* { dg-warning "no effect" } */
More information about the Gcc-patches
mailing list