summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@lbl.gov>2017-09-25 16:55:11 (GMT)
committerQuincey Koziol <koziol@lbl.gov>2017-09-25 16:55:11 (GMT)
commitfaf723e6d546a280e3fe935626f0de18f1757377 (patch)
treee33165e0428a7e4e9d35952ef9cecd9331b111ee /test
parentb5446a9c638b5a95b8dfe132f646aa4358d2b539 (diff)
parent8880ec672eeb8f57c023938074d1336dfc82e2ed (diff)
downloadhdf5-faf723e6d546a280e3fe935626f0de18f1757377.zip
hdf5-faf723e6d546a280e3fe935626f0de18f1757377.tar.gz
hdf5-faf723e6d546a280e3fe935626f0de18f1757377.tar.bz2
Merge pull request #684 in HDFFV/hdf5 from merge_full_swmr_01 to develop
* commit '8880ec672eeb8f57c023938074d1336dfc82e2ed': Style cleanups and misc. bugfixes discovered during full SWMR development.
Diffstat (limited to 'test')
-rw-r--r--test/ohdr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/ohdr.c b/test/ohdr.c
index faec835..3915b38 100644
--- a/test/ohdr.c
+++ b/test/ohdr.c
@@ -392,8 +392,9 @@ test_ohdr_swmr(hbool_t new_format)
if(H5Oget_info(did, &obj_info) < 0)
FAIL_STACK_ERROR
- if(obj_info.hdr.version != OBJ_VERSION_LATEST)
- FAIL_STACK_ERROR
+ if(new_format)
+ if(obj_info.hdr.version != OBJ_VERSION_LATEST)
+ FAIL_STACK_ERROR
/* The size of object header should be greater than the speculative read size of H5O_SPEC_READ_SIZE */
/* This will exercise the coding for the re-read of the object header for SWMR access */