diff mbox

update for test ftrapv-1.c

Message ID F007E4D1AE275F468C186A52E051529C6EADDF0B@BADAG02.ba.imgtec.org
State New
Headers show

Commit Message

Doug Gilmore July 30, 2014, 5:31 a.m. UTC
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:


OK to commit?

Thanks,

Doug

Comments

Richard Biener July 30, 2014, 8:11 a.m. UTC | #1
On Wed, Jul 30, 2014 at 7:31 AM, Doug Gilmore <Doug.Gilmore@imgtec.com> wrote:
> 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?

Ok.

Thanks,
Richard.

> Thanks,
>
> Doug
diff mbox

Patch

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