]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[testsuite] [analyzer] require fork where used
authorAlexandre Oliva <oliva@adacore.com>
Thu, 18 Apr 2024 11:01:15 +0000 (08:01 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Thu, 18 Apr 2024 11:11:40 +0000 (08:11 -0300)
Mark tests that fail due to the lack of fork, as in vxworks kernel
mode, as requiring fork.

for  gcc/testsuite/ChangeLog

* gcc.dg/analyzer/pipe-glibc.c: Require fork.
* gcc.dg/analyzer/pipe-manpages.c: Likewise.

gcc/testsuite/gcc.dg/analyzer/pipe-glibc.c
gcc/testsuite/gcc.dg/analyzer/pipe-manpages.c

index 60558a870b9d7b93aaa637d6509b7756dfe0e679..fe38ddef3959a1b7589852d21dd7a3c30d599b37 100644 (file)
@@ -1,6 +1,7 @@
-/* Example of pipe usage from glibc manual.  */
-
 /* { dg-skip-if "" { "avr-*-*" } } */
+/* { dg-require-fork "" } */
+
+/* Example of pipe usage from glibc manual.  */
 
 #include <sys/types.h>
 #include <unistd.h>
index 6b9ae4d260281aa05beac90661f06bca59d0c7be..ac5805fdba092a0a2e8c5dc504ad0b813df766fd 100644 (file)
@@ -1,3 +1,5 @@
+/* { dg-require-fork "" } */
+
 /* Example of "pipe" from release 5.13 of the Linux man-pages project.
 
 Copyright (C) 2005, 2008, Michael Kerrisk <mtk.manpages@gmail.com>