summaryrefslogtreecommitdiffstats
path: root/test/use_append_mchunks.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2021-03-11 21:34:55 (GMT)
committerGitHub <noreply@github.com>2021-03-11 21:34:55 (GMT)
commit6f760f200d6cb959c960b936af3fb2e68a55afde (patch)
tree65417bef3aaa8b351000377ad20de6687e34830f /test/use_append_mchunks.c
parenta78aae1150ffdfd44ef64c46da099c9412a7c3d0 (diff)
downloadhdf5-6f760f200d6cb959c960b936af3fb2e68a55afde.zip
hdf5-6f760f200d6cb959c960b936af3fb2e68a55afde.tar.gz
hdf5-6f760f200d6cb959c960b936af3fb2e68a55afde.tar.bz2
Replaces checks for fork, etc. with checks for unistd.h (#457)
* Replaces checks for fork, etc. with H5_HAVE_UNISTD_H Code previously checked for individual POSIX API calls using H5_HAVE_FORK, etc. The calls we use have been standardized for decades and available via unistd.h. Some test messages that were missing when tests are skipped due to a lack of unistd.h were also added. The configure checks for individual POSIX API calls will be removed in a later commit. * Stupid formatter
Diffstat (limited to 'test/use_append_mchunks.c')
-rw-r--r--test/use_append_mchunks.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/test/use_append_mchunks.c b/test/use_append_mchunks.c
index 7c1971b..47c9f92 100644
--- a/test/use_append_mchunks.c
+++ b/test/use_append_mchunks.c
@@ -53,11 +53,9 @@
#include "h5test.h"
/* This test uses many POSIX things that are not available on
- * Windows. We're using a check for fork(2) here as a proxy for
- * all POSIX/Unix/Linux things until this test can be made
- * more platform-independent.
+ * Windows.
*/
-#ifdef H5_HAVE_FORK
+#ifdef H5_HAVE_UNISTD_H
#include "use.h"
@@ -267,7 +265,7 @@ done:
return (ret_value);
} /* end main() */
-#else /* H5_HAVE_FORK */
+#else /* H5_HAVE_UNISTD_H */
int
main(void)
@@ -276,4 +274,4 @@ main(void)
return EXIT_SUCCESS;
} /* end main() */
-#endif /* H5_HAVE_FORK */
+#endif /* H5_HAVE_UNISTD_H */