diff options
author | Bruno Haible <bruno@clisp.org> | 2009-03-06 15:39:33 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-03-06 15:39:33 +0100 |
commit | 883b9007b919bce1c06e030c28220aeee2a825fc (patch) | |
tree | 8c6786452ff6e732556332b9c094ea1793a7be3d /modules | |
parent | a64a69d30a583fef8c245cd5988b35934e70bcec (diff) | |
download | gnulib-883b9007b919bce1c06e030c28220aeee2a825fc.tar.gz |
Avoid errors from posix_spawn on platforms where it is not yet ported to.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/posix_spawn-tests | 10 | ||||
-rw-r--r-- | modules/posix_spawnp-tests | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/modules/posix_spawn-tests b/modules/posix_spawn-tests index b34ea1d3d7..fc62cea813 100644 --- a/modules/posix_spawn-tests +++ b/modules/posix_spawn-tests @@ -10,7 +10,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_spawn3 check_PROGRAMS += test-posix_spawn3 +endif 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 |