mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-21 01:04:10 +08:00
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.
This commit is contained in:
parent
66efce85e7
commit
ba17f16e4c
@ -674,7 +674,7 @@ HDfprintf(stderr, "%s: Entering, section {%a, %Hu}\n", FUNC, (*sect)->sect_info.
|
||||
HDfprintf(stderr, "%s: section is dropped\n", FUNC);
|
||||
#endif /* H5MF_ALLOC_DEBUG_MORE */
|
||||
} /* end if */
|
||||
/* Adjust the section if it is not at page end but its size + pgend threshold is at page end */
|
||||
/* Adjust the section if it is not at page end but its size + prem is at page end */
|
||||
else
|
||||
if(prem <= H5F_PGEND_META_THRES(udata->f)) {
|
||||
(*sect)->sect_info.size += prem;
|
||||
|
16
test/fheap.c
16
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
|
||||
|
Loading…
Reference in New Issue
Block a user