summaryrefslogtreecommitdiffstats
path: root/contrib/netbsd-tests/lib/libc/gen/posix_spawn
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2014-10-10 21:19:17 +0000
committerngie <ngie@FreeBSD.org>2014-10-10 21:19:17 +0000
commit653a540178a700c6fcf8cfc0fa0683eb8ba5043d (patch)
treeb2c110f6567710ddc3d97daa9a00bf5a737573ec /contrib/netbsd-tests/lib/libc/gen/posix_spawn
parent9743357b21cbf472d6954c9450a5ed07229ef08c (diff)
downloadFreeBSD-src-653a540178a700c6fcf8cfc0fa0683eb8ba5043d.zip
FreeBSD-src-653a540178a700c6fcf8cfc0fa0683eb8ba5043d.tar.gz
Skip over t_spawn_open_nonexistent_diag because it requires NetBSD specific
additions to posix_spawn Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'contrib/netbsd-tests/lib/libc/gen/posix_spawn')
-rw-r--r--contrib/netbsd-tests/lib/libc/gen/posix_spawn/t_fileactions.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/netbsd-tests/lib/libc/gen/posix_spawn/t_fileactions.c b/contrib/netbsd-tests/lib/libc/gen/posix_spawn/t_fileactions.c
index 1cf6433..e998249 100644
--- a/contrib/netbsd-tests/lib/libc/gen/posix_spawn/t_fileactions.c
+++ b/contrib/netbsd-tests/lib/libc/gen/posix_spawn/t_fileactions.c
@@ -31,6 +31,9 @@
*/
+#if defined(__FreeBSD__)
+#include <sys/stat.h>
+#endif
#include <atf-c.h>
#include <stdio.h>
#include <stdlib.h>
@@ -248,6 +251,7 @@ ATF_TC_BODY(t_spawn_open_nonexistent, tc)
posix_spawn_file_actions_destroy(&fa);
}
+#if defined(__NetBSD__)
ATF_TC(t_spawn_open_nonexistent_diag);
ATF_TC_HEAD(t_spawn_open_nonexistent_diag, tc)
@@ -283,6 +287,7 @@ ATF_TC_BODY(t_spawn_open_nonexistent_diag, tc)
posix_spawn_file_actions_destroy(&fa);
posix_spawnattr_destroy(&attr);
}
+#endif
ATF_TC(t_spawn_fileactions);
@@ -376,7 +381,9 @@ ATF_TP_ADD_TCS(tp)
{
ATF_TP_ADD_TC(tp, t_spawn_fileactions);
ATF_TP_ADD_TC(tp, t_spawn_open_nonexistent);
+#if defined(__NetBSD__)
ATF_TP_ADD_TC(tp, t_spawn_open_nonexistent_diag);
+#endif
ATF_TP_ADD_TC(tp, t_spawn_reopen);
ATF_TP_ADD_TC(tp, t_spawn_openmode);
ATF_TP_ADD_TC(tp, t_spawn_empty_fileactions);
OpenPOWER on IntegriCloud