Prior to r16-7009-g39a93faab07ff6, this test was native only.

Ok for trunk?

--

For an arm-none-eabi toolchain, at least built with newlib, the fork()
function exist, but it returns failure.  The implementation is part of
libnosys.a and is there only to allow linking (runtime failure).

gcc/testsuite/ChangeLog:

        * gcc.misc-tests/gcov-pr86536.c: Skip test for arm-none-eabi.
---
 gcc/testsuite/gcc.misc-tests/gcov-pr86536.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.misc-tests/gcov-pr86536.c 
b/gcc/testsuite/gcc.misc-tests/gcov-pr86536.c
index febfacd9243..417c7c59b03 100644
--- a/gcc/testsuite/gcc.misc-tests/gcov-pr86536.c
+++ b/gcc/testsuite/gcc.misc-tests/gcov-pr86536.c
@@ -1,6 +1,6 @@
 // PR gcov-profile/86536
 // { dg-options "-fprofile-arcs -ftest-coverage" }
-// { dg-do run }
+// { dg-do run { target { ! arm-none-eabi } } }
 // { dg-require-fork "" }
 
 #include <stdlib.h>
-- 
2.43.0

Reply via email to