summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2017-04-20 20:11:47 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2017-04-24 19:35:30 (GMT)
commit0f01ad384549c6faeece5b2aec1092d4584a8752 (patch)
tree7f5b1c2d8f0654594b499c12ef143f7ec564e823
parentb68ad8622445e898c1e1c85265b63642c24808e1 (diff)
downloadhdf5-0f01ad384549c6faeece5b2aec1092d4584a8752.zip
hdf5-0f01ad384549c6faeece5b2aec1092d4584a8752.tar.gz
hdf5-0f01ad384549c6faeece5b2aec1092d4584a8752.tar.bz2
The cache_image test shows a skipped message about EoC in parallel.
-rw-r--r--src/H5Pfapl.c1
-rw-r--r--test/cache_image.c18
-rw-r--r--test/evict_on_close.c1
3 files changed, 9 insertions, 11 deletions
diff --git a/src/H5Pfapl.c b/src/H5Pfapl.c
index 9e275b8..0ab0433 100644
--- a/src/H5Pfapl.c
+++ b/src/H5Pfapl.c
@@ -4399,7 +4399,6 @@ H5Pset_evict_on_close(
FUNC_ENTER_API(FAIL)
H5TRACE2("e", "ib", fapl_id, evict_on_close);
-
/* Compare the property list's class against the other class */
if(TRUE != H5P_isa_class(fapl_id, H5P_FILE_ACCESS))
HGOTO_ERROR(H5E_PLIST, H5E_CANTREGISTER, FAIL, "property list is not a file access plist")
diff --git a/test/cache_image.c b/test/cache_image.c
index c8f1e82..58b0b8f 100644
--- a/test/cache_image.c
+++ b/test/cache_image.c
@@ -60,10 +60,7 @@ static unsigned cache_image_api_error_check_3(void);
static unsigned cache_image_api_error_check_4(void);
static unsigned get_free_sections_test(void);
-
-#ifndef H5_HAVE_PARALLEL
static unsigned evict_on_close_test(void);
-#endif /* H5_HAVE_PARALLEL */
/****************************************************************************/
@@ -7712,10 +7709,10 @@ get_free_sections_test(void)
*
*-------------------------------------------------------------------------
*/
-#ifndef H5_HAVE_PARALLEL
static unsigned
evict_on_close_test(void)
{
+#ifndef H5_HAVE_PARALLEL
const char * fcn_name = "evict_on_close_test()";
char filename[512];
hbool_t show_progress = FALSE;
@@ -7724,9 +7721,16 @@ evict_on_close_test(void)
H5F_t *file_ptr = NULL;
H5C_t *cache_ptr = NULL;
int cp = 0;
+#endif /* H5_HAVE_PARALLEL */
TESTING("Cache image / evict on close interaction");
+#ifdef H5_HAVE_PARALLEL
+ SKIPPED();
+ HDputs(" EoC not supported in the parallel library.");
+ return 0;
+#else
+
pass = TRUE;
if ( show_progress )
@@ -8015,9 +8019,9 @@ evict_on_close_test(void)
FUNC, failure_mssg);
return !pass;
+#endif /* H5_HAVE_PARALLEL */
} /* evict_on_close_test() */
-#endif /* H5_HAVE_PARALLEL */
/*-------------------------------------------------------------------------
@@ -8069,13 +8073,9 @@ main(void)
nerrs += cache_image_api_error_check_4();
nerrs += get_free_sections_test();
-
-#ifndef H5_HAVE_PARALLEL
nerrs += evict_on_close_test();
-#endif /* H5_HAVE_PARALLEL */
return(nerrs > 0);
} /* main() */
-
diff --git a/test/evict_on_close.c b/test/evict_on_close.c
index 91784da..6536837 100644
--- a/test/evict_on_close.c
+++ b/test/evict_on_close.c
@@ -806,7 +806,6 @@ error:
} /* check_dset_scheme() */
-
/*-------------------------------------------------------------------------
* Function: check_evict_on_close_api()