summaryrefslogtreecommitdiffstats
path: root/test/fheap.c
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-08-02 22:04:15 (GMT)
commitd4e75f6a50d028cae250f764fe118a5f0c2257f6 (patch)
tree1b4fb0faf17124513dd947efef8dc7be00bdb1f9 /test/fheap.c
parentd7bfd458c4eadcfb338e9856256ecd98aa47aa10 (diff)
downloadhdf5-d4e75f6a50d028cae250f764fe118a5f0c2257f6.zip
hdf5-d4e75f6a50d028cae250f764fe118a5f0c2257f6.tar.gz
hdf5-d4e75f6a50d028cae250f764fe118a5f0c2257f6.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/fheap.c')
-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