summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorVailin Choi <vchoi@jam.ad.hdfgroup.org>2017-07-10 07:40:59 (GMT)
committerVailin Choi <vchoi@jam.ad.hdfgroup.org>2017-07-18 04:31:21 (GMT)
commitba17f16e4ca2ab92160a40d54f570042a2c9ea14 (patch)
treedcdaa2307364e6ab5c799a5b1cc4c44ada4ae3f1 /test
parent66efce85e7ad9430d5e58d529d7b7a55b0d4ac5f (diff)
downloadhdf5-ba17f16e4ca2ab92160a40d54f570042a2c9ea14.zip
hdf5-ba17f16e4ca2ab92160a40d54f570042a2c9ea14.tar.gz
hdf5-ba17f16e4ca2ab92160a40d54f570042a2c9ea14.tar.bz2
Skip test in test/fheap.c when:
a) multi/split drivers and b) persisting free-space or using paged aggregation strategy because the library will fail file creation (temporary) for the above conditions.
Diffstat (limited to 'test')
-rw-r--r--test/fheap.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/fheap.c b/test/fheap.c
index 4be6cb9..6c3a8ac 100644
--- a/test/fheap.c
+++ b/test/fheap.c
@@ -16377,6 +16377,16 @@ main(void)
unsigned nerrors = 0; /* Cumulative error count */
unsigned num_pb_fs = 1; /* The number of settings to test for page buffering and file space handling */
int ExpressMode; /* Express testing level */
+ const char *envval; /* Environment variable */
+ hbool_t contig_addr_vfd; /* Whether VFD used has a contigous address space */
+
+ /* Don't run this test using certain file drivers */
+ envval = HDgetenv("HDF5_DRIVER");
+ if(envval == NULL)
+ envval = "nomatch";
+
+ /* Current VFD that does not support contigous address space */
+ contig_addr_vfd = (hbool_t)(HDstrcmp(envval, "split") && HDstrcmp(envval, "multi"));
/* Reset library */
h5_reset();
@@ -16428,6 +16438,12 @@ main(void)
shared_wobj_g[u] = (unsigned char)u;
for(v = 0; v < num_pb_fs; v++) {
+ /* Skip test when:
+ a) multi/split drivers and
+ b) persisting free-space or using paged aggregation strategy
+ because the library will fail file creation (temporary) for the above conditions */
+ if(!contig_addr_vfd && v)
+ break;
if((fcpl = H5Pcopy(def_fcpl)) < 0)
TEST_ERROR