diff options
author | Dana Robinson <43805+derobins@users.noreply.github.com> | 2021-03-11 21:34:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-11 21:34:55 (GMT) |
commit | 6f760f200d6cb959c960b936af3fb2e68a55afde (patch) | |
tree | 65417bef3aaa8b351000377ad20de6687e34830f /test/accum.c | |
parent | a78aae1150ffdfd44ef64c46da099c9412a7c3d0 (diff) | |
download | hdf5-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/accum.c')
-rw-r--r-- | test/accum.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/accum.c b/test/accum.c index 08fe926..51a03c6 100644 --- a/test/accum.c +++ b/test/accum.c @@ -2092,7 +2092,7 @@ error: unsigned test_swmr_write_big(hbool_t newest_format) { -#if defined(H5_HAVE_FORK) && defined(H5_HAVE_WAITPID) && defined(H5_HAVE_UNISTD_H) +#ifdef H5_HAVE_UNISTD_H hid_t fid = -1; /* File ID */ hid_t fapl = -1; /* File access property list */ H5F_t * rf = NULL; /* File pointer */ @@ -2287,11 +2287,11 @@ error: return 1; -#else +#else /* H5_HAVE_UNISTD_H */ SKIPPED(); HDputs(" Test skipped due to fork, waitpid, or pid_t not defined."); return 0; -#endif /* defined(H5_HAVE_FORK) && defined(H5_HAVE_WAITPID) && defined(H5_HAVE_UNISTD_H) */ +#endif /* H5_HAVE_UNISTD_H */ } /* end test_swmr_write_big() */ |