diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2009-06-11 20:02:05 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2009-06-11 20:02:05 (GMT) |
commit | 74af8cfa9234643684e592e00f3cc2c7fce66571 (patch) | |
tree | 0d0237cd507a43cab8c65e73423af386e5cff8c8 /test/mf.c | |
parent | cce29e56422e84ffb3a686b6823692b545b28323 (diff) | |
download | hdf5-74af8cfa9234643684e592e00f3cc2c7fce66571.zip hdf5-74af8cfa9234643684e592e00f3cc2c7fce66571.tar.gz hdf5-74af8cfa9234643684e592e00f3cc2c7fce66571.tar.bz2 |
[svn-r17035] Description:
Add private macro for testing if an address is in the 'temporary' file
space for a file.
Tested on:
FreeBSD/32 6.3 (duty)
Too minor to require h5committest
Diffstat (limited to 'test/mf.c')
-rw-r--r-- | test/mf.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -30,6 +30,7 @@ #include "H5FSpkg.h" #define H5F_PACKAGE +#define H5F_TESTING #include "H5Fpkg.h" #include "H5FLprivate.h" @@ -790,6 +791,8 @@ test_mf_tmp(const char *env_h5_drvr, hid_t fapl) FAIL_STACK_ERROR /* Check if temporary file address is valid */ + if(!H5F_IS_TMP_ADDR(f, tmp_addr)) + TEST_ERROR if(tmp_addr < (haddr_t)(maxaddr - TEST_BLOCK_SIZE30)) TEST_ERROR @@ -836,10 +839,14 @@ test_mf_tmp(const char *env_h5_drvr, hid_t fapl) /* Allocate 1/3 of the file as temporary address space */ if(HADDR_UNDEF == (tmp_addr = H5MF_alloc_tmp(f, (hsize_t)(maxaddr / 3)))) FAIL_STACK_ERROR + if(!H5F_IS_TMP_ADDR(f, tmp_addr)) + TEST_ERROR /* Allocate 1/3 of the file as normal address space */ if(HADDR_UNDEF == (norm_addr = H5MF_alloc(f, H5FD_MEM_DRAW, H5P_DATASET_XFER_DEFAULT, (hsize_t)(maxaddr / 3)))) FAIL_STACK_ERROR + if(H5F_IS_TMP_ADDR(f, norm_addr)) + TEST_ERROR /* Test that pushing temporary space allocation into normal space fails */ H5E_BEGIN_TRY { |