diff options
Diffstat (limited to 'test/page_buffer.c')
-rw-r--r-- | test/page_buffer.c | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/test/page_buffer.c b/test/page_buffer.c index 5313c9b..f6ce4a7 100644 --- a/test/page_buffer.c +++ b/test/page_buffer.c @@ -43,18 +43,21 @@ #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); 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 */ const char *FILENAME[] = { @@ -379,6 +382,8 @@ error: * *------------------------------------------------------------------------- */ + +#ifndef H5_HAVE_PARALLEL static unsigned test_args(hid_t orig_fapl, const char *env_h5_drvr) { @@ -533,6 +538,7 @@ error: } H5E_END_TRY; return 1; } /* test_args */ +#endif /*------------------------------------------------------------------------- @@ -565,6 +571,7 @@ error: */ /* 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) { @@ -810,6 +817,7 @@ error: } H5E_END_TRY; return 1; } /* test_raw_data_handling */ +#endif /*------------------------------------------------------------------------- @@ -842,6 +850,7 @@ error: *------------------------------------------------------------------------- */ +#ifndef H5_HAVE_PARALLEL static unsigned test_lru_processing(hid_t orig_fapl, const char *env_h5_drvr) { @@ -1063,6 +1072,7 @@ error: } H5E_END_TRY; return 1; } /* test_lru_processing */ +#endif /*------------------------------------------------------------------------- @@ -1096,6 +1106,7 @@ error: *------------------------------------------------------------------------- */ +#ifndef H5_HAVE_PARALLEL static unsigned test_min_threshold(hid_t orig_fapl, const char *env_h5_drvr) { @@ -1699,6 +1710,7 @@ error: return 1; } /* test_min_threshold */ +#endif /*------------------------------------------------------------------------- @@ -1731,6 +1743,7 @@ error: * *------------------------------------------------------------------------- */ +#ifndef H5_HAVE_PARALLEL static unsigned test_stats_collection(hid_t orig_fapl, const char *env_h5_drvr) { @@ -2002,6 +2015,7 @@ error: return 1; } /* test_stats_collection */ +#endif /*------------------------------------------------------------------------- |