summaryrefslogtreecommitdiffstats
path: root/test
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
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')
-rw-r--r--test/vfd_swmr_addrem_writer.c17
-rw-r--r--test/vfd_swmr_bigset_writer.c19
-rw-r--r--test/vfd_swmr_generator.c12
-rw-r--r--test/vfd_swmr_group_writer.c19
-rw-r--r--test/vfd_swmr_reader.c12
-rw-r--r--test/vfd_swmr_remove_reader.c17
-rw-r--r--test/vfd_swmr_remove_writer.c13
-rw-r--r--test/vfd_swmr_sparse_reader.c16
-rw-r--r--test/vfd_swmr_sparse_writer.c17
-rw-r--r--test/vfd_swmr_vlstr_reader.c17
-rw-r--r--test/vfd_swmr_vlstr_writer.c17
-rw-r--r--test/vfd_swmr_writer.c15
12 files changed, 172 insertions, 19 deletions
diff --git a/test/vfd_swmr_addrem_writer.c b/test/vfd_swmr_addrem_writer.c
index b4c0e1f..9af54cc 100644
--- a/test/vfd_swmr_addrem_writer.c
+++ b/test/vfd_swmr_addrem_writer.c
@@ -32,7 +32,7 @@
/* Headers */
/***********/
-#include <err.h> /* errx(3) */
+
#include "h5test.h"
#include "vfd_swmr_common.h"
@@ -46,6 +46,10 @@
/* Local Prototypes */
/********************/
+#ifndef H5_HAVE_WIN32_API
+
+#include <err.h> /* errx(3) */
+
static hid_t open_skeleton(const char *filename, unsigned verbose);
static int addrem_records(hid_t fid, unsigned verbose, unsigned long nops,
unsigned long flush_count);
@@ -474,3 +478,14 @@ int main(int argc, const char *argv[])
return 0;
} /* main() */
+
+#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 */
diff --git a/test/vfd_swmr_bigset_writer.c b/test/vfd_swmr_bigset_writer.c
index 4bf08fd..4d1ccbe 100644
--- a/test/vfd_swmr_bigset_writer.c
+++ b/test/vfd_swmr_bigset_writer.c
@@ -66,9 +66,6 @@
* user-selectable.
*/
-#include <err.h>
-#include <libgen.h>
-
#define H5C_FRIEND /*suppress error about including H5Cpkg */
#define H5F_FRIEND /*suppress error about including H5Fpkg */
@@ -83,6 +80,11 @@
#include "testhdf5.h"
#include "vfd_swmr_common.h"
+#ifndef H5_HAVE_WIN32_API
+
+#include <err.h>
+#include <libgen.h>
+
#define ROWS 256
#define COLS 512
#define RANK 2
@@ -1245,3 +1247,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 */
diff --git a/test/vfd_swmr_generator.c b/test/vfd_swmr_generator.c
index a1cc26f..ff20ba7 100644
--- a/test/vfd_swmr_generator.c
+++ b/test/vfd_swmr_generator.c
@@ -37,6 +37,7 @@
#define H5O_TESTING
#include "H5Opkg.h" /* Object headers */
+#ifndef H5_HAVE_WIN32_API
/****************/
/* Local Macros */
@@ -381,3 +382,14 @@ int main(int argc, const char *argv[])
return 0;
} /* main() */
+
+#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 */
diff --git a/test/vfd_swmr_group_writer.c b/test/vfd_swmr_group_writer.c
index 155e9b1..a365a09 100644
--- a/test/vfd_swmr_group_writer.c
+++ b/test/vfd_swmr_group_writer.c
@@ -11,9 +11,6 @@
* help@hdfgroup.org.
*/
-#include <err.h>
-#include <libgen.h>
-
#define H5F_FRIEND /*suppress error about including H5Fpkg */
#include "hdf5.h"
@@ -26,6 +23,11 @@
#include "testhdf5.h"
#include "vfd_swmr_common.h"
+#ifndef H5_HAVE_WIN32_API
+
+#include <err.h>
+#include <libgen.h>
+
typedef struct {
hid_t file, filetype, one_by_one_sid;
char filename[PATH_MAX];
@@ -344,3 +346,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 */
diff --git a/test/vfd_swmr_reader.c b/test/vfd_swmr_reader.c
index 0b9132e..111d37c 100644
--- a/test/vfd_swmr_reader.c
+++ b/test/vfd_swmr_reader.c
@@ -33,6 +33,8 @@
#include "vfd_swmr_common.h"
#include "swmr_common.h"
+#ifndef H5_HAVE_WIN32_API
+
/********************/
/* Local Prototypes */
/********************/
@@ -659,3 +661,13 @@ int main(int argc, const char *argv[])
return 0;
}
+#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 */
diff --git a/test/vfd_swmr_remove_reader.c b/test/vfd_swmr_remove_reader.c
index 80fe042..d63b2cd 100644
--- a/test/vfd_swmr_remove_reader.c
+++ b/test/vfd_swmr_remove_reader.c
@@ -27,12 +27,14 @@
/* Headers */
/***********/
-#include <err.h> /* errx(3) */
-
#include "h5test.h"
#include "vfd_swmr_common.h"
#include "swmr_common.h"
+#ifndef H5_HAVE_WIN32_API
+
+#include <err.h>
+
/*******************/
/* Local Variables */
/*******************/
@@ -581,3 +583,14 @@ int main(int argc, const char *argv[])
return 0;
}
+
+#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 */
diff --git a/test/vfd_swmr_remove_writer.c b/test/vfd_swmr_remove_writer.c
index 9ec5b98..e8dd998 100644
--- a/test/vfd_swmr_remove_writer.c
+++ b/test/vfd_swmr_remove_writer.c
@@ -36,6 +36,8 @@
#include "vfd_swmr_common.h"
#include "swmr_common.h"
+#ifndef H5_HAVE_WIN32_API
+
/****************/
/* Local Macros */
/****************/
@@ -399,3 +401,14 @@ int main(int argc, const char *argv[])
return 0;
} /* main() */
+
+#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 */
diff --git a/test/vfd_swmr_sparse_reader.c b/test/vfd_swmr_sparse_reader.c
index 3f07dc9..2726df9 100644
--- a/test/vfd_swmr_sparse_reader.c
+++ b/test/vfd_swmr_sparse_reader.c
@@ -30,12 +30,13 @@
/* Headers */
/***********/
-#include <inttypes.h> /* for PRIu64 */
-
#include "h5test.h"
#include "vfd_swmr_common.h"
#include "swmr_common.h"
+#ifndef H5_HAVE_WIN32_API
+
+
/****************/
/* Local Macros */
/****************/
@@ -521,3 +522,14 @@ int main(int argc, const char *argv[])
return 0;
} /* main() */
+
+#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 */
diff --git a/test/vfd_swmr_sparse_writer.c b/test/vfd_swmr_sparse_writer.c
index a431aee..a9c6e23 100644
--- a/test/vfd_swmr_sparse_writer.c
+++ b/test/vfd_swmr_sparse_writer.c
@@ -28,13 +28,15 @@
/***********/
/* Headers */
/***********/
-#include <err.h>
-#include <signal.h>
#include "h5test.h"
#include "vfd_swmr_common.h"
#include "swmr_common.h"
+#ifndef H5_HAVE_WIN32_API
+
+#include <err.h>
+
/****************/
/* Local Macros */
/****************/
@@ -461,3 +463,14 @@ int main(int argc, const char *argv[])
return 0;
} /* main() */
+
+#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 */
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 */
diff --git a/test/vfd_swmr_vlstr_writer.c b/test/vfd_swmr_vlstr_writer.c
index 3085575..57d08ec 100644
--- a/test/vfd_swmr_vlstr_writer.c
+++ b/test/vfd_swmr_vlstr_writer.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>
+
enum _step {
CREATE = 0
, LENGTHEN
@@ -323,3 +325,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 */
diff --git a/test/vfd_swmr_writer.c b/test/vfd_swmr_writer.c
index be45a68..3ef1009 100644
--- a/test/vfd_swmr_writer.c
+++ b/test/vfd_swmr_writer.c
@@ -29,12 +29,13 @@
/* Headers */
/***********/
-#include <unistd.h> /* getopt(3) */
-
#include "h5test.h"
#include "vfd_swmr_common.h"
#include "swmr_common.h"
+/* Uses getopt */
+#ifndef H5_HAVE_WIN32_API
+
/********************/
/* Local Prototypes */
/********************/
@@ -427,3 +428,13 @@ main(int argc, char * const *argv)
return 0;
}
+#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 */