summaryrefslogtreecommitdiffstats
path: root/test/vfd_swmr_vlstr_reader.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2021-03-10 01:14:09 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2021-03-10 01:14:09 (GMT)
commita44ac1af3f9e2b775598126338a596e83db2696e (patch)
tree894095472fa617bf20d0e2c78248664f23723199 /test/vfd_swmr_vlstr_reader.c
parent3ba3ce9bfa75a894da7ec75fb18ea4a57d8cf55d (diff)
downloadhdf5-a44ac1af3f9e2b775598126338a596e83db2696e.zip
hdf5-a44ac1af3f9e2b775598126338a596e83db2696e.tar.gz
hdf5-a44ac1af3f9e2b775598126338a596e83db2696e.tar.bz2
Excludes VFD SWMR acceptance tests on Windows
Via #ifdefs, not build system
Diffstat (limited to 'test/vfd_swmr_vlstr_reader.c')
-rw-r--r--test/vfd_swmr_vlstr_reader.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/test/vfd_swmr_vlstr_reader.c b/test/vfd_swmr_vlstr_reader.c
index c6bf1dc..5905a3d 100644
--- a/test/vfd_swmr_vlstr_reader.c
+++ b/test/vfd_swmr_vlstr_reader.c
@@ -11,8 +11,6 @@
* help@hdfgroup.org.
*/
-#include <err.h>
-
#define H5C_FRIEND /*suppress error about including H5Cpkg */
#define H5F_FRIEND /*suppress error about including H5Fpkg */
@@ -27,6 +25,10 @@
#include "testhdf5.h"
#include "vfd_swmr_common.h"
+#ifndef H5_HAVE_WIN32_API
+
+#include <err.h>
+
typedef enum _step {
CREATE = 0
, LENGTHEN
@@ -227,3 +229,14 @@ main(int argc, char **argv)
return EXIT_SUCCESS;
}
+
+#else /* H5_HAVE_WIN32_API */
+
+int
+main(void)
+{
+ HDfprintf(stderr, "Non-POSIX platform. Skipping.\n");
+ return EXIT_SUCCESS;
+} /* end main() */
+
+#endif /* H5_HAVE_WIN32_API */