summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/cache_image.c2
-rw-r--r--test/page_buffer.c33
-rw-r--r--test/tmisc.c7
3 files changed, 28 insertions, 14 deletions
diff --git a/test/cache_image.c b/test/cache_image.c
index d4002c7..12f8171 100644
--- a/test/cache_image.c
+++ b/test/cache_image.c
@@ -7838,7 +7838,7 @@ get_free_sections_test(hbool_t single_file_vfd)
*-------------------------------------------------------------------------
*/
static unsigned
-evict_on_close_test(hbool_t single_file_vfd)
+evict_on_close_test(hbool_t H5_ATTR_UNUSED single_file_vfd)
{
#ifndef H5_HAVE_PARALLEL
const char * fcn_name = "evict_on_close_test()";
diff --git a/test/page_buffer.c b/test/page_buffer.c
index 2baf6dc..fb22563 100644
--- a/test/page_buffer.c
+++ b/test/page_buffer.c
@@ -46,19 +46,22 @@
#define NY 50
/* helper routines */
+#ifndef H5_HAVE_PARALLEL
static unsigned create_file(char *filename, hid_t fcpl, hid_t fapl);
static unsigned open_file(char *filename, hid_t fapl, hsize_t page_size, size_t page_buffer_size);
+#endif /* H5_HAVE_PARALLEL */
/* test routines */
+#ifdef H5_HAVE_PARALLEL
+static unsigned verify_page_buffering_disabled(hid_t orig_fapl,
+ const char *env_h5_drvr);
+#else
static unsigned test_args(hid_t fapl, const char *env_h5_drvr);
static unsigned test_raw_data_handling(hid_t orig_fapl, const char *env_h5_drvr,
bool);
static unsigned test_lru_processing(hid_t orig_fapl, const char *env_h5_drvr);
static unsigned test_min_threshold(hid_t orig_fapl, const char *env_h5_drvr);
static unsigned test_stats_collection(hid_t orig_fapl, const char *env_h5_drvr);
-#ifdef H5_HAVE_PARALLEL
-static unsigned verify_page_buffering_disabled(hid_t orig_fapl,
- const char *env_h5_drvr);
#endif /* H5_HAVE_PARALLEL */
#define FILENAME "filepaged"
@@ -508,6 +511,8 @@ error:
*
*-------------------------------------------------------------------------
*/
+
+#ifndef H5_HAVE_PARALLEL
static unsigned
test_args(hid_t orig_fapl, const char *env_h5_drvr)
{
@@ -661,7 +666,8 @@ error:
H5Pclose(fcpl);
} H5E_END_TRY;
return 1;
-}
+} /* test_args */
+#endif
/*
@@ -1170,6 +1176,9 @@ error:
*
* JRM -- 10/26/18
*/
+
+/* Changes due to file space page size has a minimum size of 512 */
+#ifndef H5_HAVE_PARALLEL
static unsigned
test_raw_data_handling(hid_t orig_fapl, const char *env_h5_drvr,
bool vfd_swmr_mode)
@@ -1434,7 +1443,8 @@ error:
HDfree(data);
} H5E_END_TRY;
return 1;
-}
+} /* test_raw_data_handling */
+#endif
/*-------------------------------------------------------------------------
@@ -1462,6 +1472,7 @@ error:
*-------------------------------------------------------------------------
*/
+#ifndef H5_HAVE_PARALLEL
static unsigned
test_lru_processing(hid_t orig_fapl, const char *env_h5_drvr)
{
@@ -1697,7 +1708,8 @@ error:
HDfree(data);
} H5E_END_TRY;
return 1;
-}
+} /* test_lru_processing */
+#endif
/*-------------------------------------------------------------------------
@@ -1739,6 +1751,7 @@ error:
*-------------------------------------------------------------------------
*/
+#ifndef H5_HAVE_PARALLEL
static unsigned
test_min_threshold(hid_t orig_fapl, const char *env_h5_drvr)
{
@@ -2430,7 +2443,9 @@ error:
HDfree(data);
} H5E_END_TRY;
return 1;
-}
+
+} /* test_min_threshold */
+#endif
/*-------------------------------------------------------------------------
@@ -2467,6 +2482,7 @@ error:
*
*-------------------------------------------------------------------------
*/
+#ifndef H5_HAVE_PARALLEL
static unsigned
test_stats_collection(hid_t orig_fapl, const char *env_h5_drvr)
{
@@ -2824,7 +2840,8 @@ error:
} H5E_END_TRY;
return 1;
-}
+} /* test_stats_collection */
+#endif
/*-------------------------------------------------------------------------
diff --git a/test/tmisc.c b/test/tmisc.c
index 7b7f5ba..34d20bf 100644
--- a/test/tmisc.c
+++ b/test/tmisc.c
@@ -128,15 +128,12 @@ typedef struct
/* Definitions for misc. test #8 */
#define MISC8_FILE "tmisc8.h5"
#define MISC8_DSETNAME1 "Dataset1"
-#define MISC8_DSETNAME2 "Dataset2"
-#define MISC8_DSETNAME3 "Dataset3"
#define MISC8_DSETNAME4 "Dataset4"
#define MISC8_DSETNAME5 "Dataset5"
-#define MISC8_DSETNAME6 "Dataset6"
+#ifndef H5_HAVE_PARALLEL
#define MISC8_DSETNAME7 "Dataset7"
+#endif
#define MISC8_DSETNAME8 "Dataset8"
-#define MISC8_DSETNAME9 "Dataset9"
-#define MISC8_DSETNAME10 "Dataset10"
#define MISC8_RANK 2
#define MISC8_DIM0 50
#define MISC8_DIM1 50