mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-30 15:32:37 +08:00
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
This commit is contained in:
commit
cad9a33760
@ -18,10 +18,6 @@
|
||||
|
||||
add_test (NAME TEST_PAR_testphdf5 COMMAND ${MPIEXEC_EXECUTABLE} ${MPIEXEC_NUMPROC_FLAG} ${MPIEXEC_MAX_NUMPROCS} ${MPIEXEC_PREFLAGS} $<TARGET_FILE:testphdf5> ${MPIEXEC_POSTFLAGS})
|
||||
|
||||
if (WIN32)
|
||||
# t_cache_imagee uses fork() and execve(), will not run on Windows
|
||||
list (REMOVE_ITEM H5P_TESTS t_cache_image)
|
||||
endif ()
|
||||
foreach (testp ${H5P_TESTS})
|
||||
add_test (NAME TEST_PAR_${testp} COMMAND ${MPIEXEC_EXECUTABLE} ${MPIEXEC_NUMPROC_FLAG} ${MPIEXEC_MAX_NUMPROCS} ${MPIEXEC_PREFLAGS} $<TARGET_FILE:${testp}> ${MPIEXEC_POSTFLAGS})
|
||||
endforeach ()
|
||||
|
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user