summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2011-10-26 14:58:36 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2011-10-26 14:58:36 (GMT)
commit44b776141bfe78dc08148ede7a11a042879f45af (patch)
tree1a153b8f8a49afcba9c2081f00e6ff3b4cd3011a /test
parent1fde26b7a5447089ac57b2ffc10f2b535b7999de (diff)
downloadhdf5-44b776141bfe78dc08148ede7a11a042879f45af.zip
hdf5-44b776141bfe78dc08148ede7a11a042879f45af.tar.gz
hdf5-44b776141bfe78dc08148ede7a11a042879f45af.tar.bz2
[svn-r21676] Description:
Don't check dataset storage size for compressed datasets with region reference datatypes. (The address of the region reference type in the file varies and affects the compressed size) Tested on: Mac OS X/32 10.7.2 (amazon) w/debug & production + check-vfd
Diffstat (limited to 'test')
-rwxr-xr-xtest/objcopy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/objcopy.c b/test/objcopy.c
index 32839e8..ac73a96 100755
--- a/test/objcopy.c
+++ b/test/objcopy.c
@@ -1236,7 +1236,8 @@ compare_datasets(hid_t did, hid_t did2, hid_t pid, const void *wbuf)
* data in each dataset will (probably) be different and the storage
* size will thus vary)
*/
- if(!(nfilters > 0 && H5Tdetect_class(tid, H5T_VLEN))) {
+ if(!(nfilters > 0 && (H5Tdetect_class(tid, H5T_VLEN) ||
+ (H5Tdetect_class(tid, H5T_REFERENCE) && H5Tequal(tid, H5T_STD_REF_DSETREG))))) {
hsize_t storage_size = H5Dget_storage_size(did); /* Dataset's raw data storage size */
hsize_t storage_size2 = H5Dget_storage_size(did2); /* 2nd Dataset's raw data storage size */