summaryrefslogtreecommitdiff
path: root/modules/posix_spawnp-tests
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2009-03-06 15:39:33 +0100
committerBruno Haible <bruno@clisp.org>2009-03-06 15:39:33 +0100
commit883b9007b919bce1c06e030c28220aeee2a825fc (patch)
tree8c6786452ff6e732556332b9c094ea1793a7be3d /modules/posix_spawnp-tests
parenta64a69d30a583fef8c245cd5988b35934e70bcec (diff)
downloadgnulib-883b9007b919bce1c06e030c28220aeee2a825fc.tar.gz
Avoid errors from posix_spawn on platforms where it is not yet ported to.
Diffstat (limited to 'modules/posix_spawnp-tests')
-rw-r--r--modules/posix_spawnp-tests10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/posix_spawnp-tests b/modules/posix_spawnp-tests
index 7c045800f9..f8c7233f72 100644
--- a/modules/posix_spawnp-tests
+++ b/modules/posix_spawnp-tests
@@ -20,8 +20,17 @@ unistd
sys_wait
configure.ac:
+AC_EGREP_CPP([notposix], [[
+#if defined _MSC_VER || defined __MINGW32__
+ notposix
+#endif
+ ]],
+ [posix_spawn_ported=no],
+ [posix_spawn_ported=yes])
+AM_CONDITIONAL([POSIX_SPAWN_PORTED], [test $posix_spawn_ported = yes])
Makefile.am:
+if POSIX_SPAWN_PORTED
TESTS += test-posix_spawn1 test-posix_spawn2
check_PROGRAMS += test-posix_spawn1 test-posix_spawn2
@@ -36,3 +45,4 @@ test-posix_spawn2.sh: test-posix_spawn2.in.sh
cp $(srcdir)/test-posix_spawn2.in.sh $@-t
mv $@-t $@
MOSTLYCLEANFILES += test-posix_spawn2.sh test-posix_spawn2.sh-t
+endif