summaryrefslogtreecommitdiffstats
path: root/testpar/t_cache_image.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2018-03-06 21:57:16 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2018-03-06 21:57:16 (GMT)
commitcad9a3376061dd76287a9a8356f08aa55f00b721 (patch)
tree396d9dae5054d23d2ece0817cfc86f09464d9b01 /testpar/t_cache_image.c
parentd8f88eb7b8709a80981e04cb5671a1a17ef66da0 (diff)
parentb8b0afc4c3e532c07c1284eddb0c5cb7834ea86a (diff)
downloadhdf5-cad9a3376061dd76287a9a8356f08aa55f00b721.zip
hdf5-cad9a3376061dd76287a9a8356f08aa55f00b721.tar.gz
hdf5-cad9a3376061dd76287a9a8356f08aa55f00b721.tar.bz2
Merge pull request #923 in HDFFV/hdf5 from ~BYRN/hdf5_adb:develop to develop
* commit 'b8b0afc4c3e532c07c1284eddb0c5cb7834ea86a': Add #ifdef H5_HAVE_FORK eliminates special handling Add #ifdef H5_HAVE_FORK
Diffstat (limited to 'testpar/t_cache_image.c')
-rw-r--r--testpar/t_cache_image.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/testpar/t_cache_image.c b/testpar/t_cache_image.c
index 7fe0020..d23548a 100644
--- a/testpar/t_cache_image.c
+++ b/testpar/t_cache_image.c
@@ -4056,6 +4056,13 @@ smoke_check_1(MPI_Comm mpi_comm, MPI_Info mpi_info, int mpi_rank, int mpi_size)
} /* smoke_check_1() */
+/* 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.
+ */
+#ifdef H5_HAVE_FORK
+
/*-------------------------------------------------------------------------
* Function: main
*
@@ -4271,4 +4278,14 @@ finish:
return(nerrs > 0);
} /* main() */
+#else /* H5_HAVE_FORK */
+
+int
+main(void)
+{
+ HDfprintf(stderr, "Non-POSIX platform. Skipping.\n");
+ return EXIT_SUCCESS;
+} /* end main() */
+
+#endif /* H5_HAVE_FORK */