summaryrefslogtreecommitdiffstats
path: root/test/mf.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2009-06-11 20:02:05 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2009-06-11 20:02:05 (GMT)
commit74af8cfa9234643684e592e00f3cc2c7fce66571 (patch)
tree0d0237cd507a43cab8c65e73423af386e5cff8c8 /test/mf.c
parentcce29e56422e84ffb3a686b6823692b545b28323 (diff)
downloadhdf5-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.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/mf.c b/test/mf.c
index 8b5c51b..5c05848 100644
--- a/test/mf.c
+++ b/test/mf.c
@@ -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 {