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]
Other format: [Raw text]

[patch] update for test ftrapv-1.c


With r213117 we are seeing additional failures while testing a bare-iron build:

FAIL: gcc.dg/torture/ftrapv-1.c   -O0  (test for excess errors)
...

This newly added test does a fork, though it has a guard
to prevent testing targets that don't support fork, but the
guard needs to be tweaked:

diff --git a/gcc/testsuite/gcc.dg/torture/ftrapv-1.c b/gcc/testsuite/gcc.dg/torture/ftrapv-1.c
index 4fdccd8..4fee1e1 100644
--- a/gcc/testsuite/gcc.dg/torture/ftrapv-1.c
+++ b/gcc/testsuite/gcc.dg/torture/ftrapv-1.c
@@ -1,7 +1,7 @@
 /* { dg-do run } */
 /* { dg-additional-options "-ftrapv" } */
 /* { dg-require-effective-target trapping } */
-/* { dg-require-fork } */
+/* { dg-require-fork unused } */
 
 #include <stdlib.h>
 #include <unistd.h>
--- end of patch

OK to commit?

Thanks,

Doug


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