diff options
author | Quincey Koziol <koziol@koziol.gov> | 2020-01-04 16:05:22 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@koziol.gov> | 2020-01-04 16:05:22 (GMT) |
commit | 9a155a538bb179c794c75780757ef3e6af3c9b28 (patch) | |
tree | 771322bef14326f5bbd8e1cb9b261baf0b22faff /test/dsets.c | |
parent | 617e2166b26f6b872281888c4f9f2486004a1a58 (diff) | |
download | hdf5-9a155a538bb179c794c75780757ef3e6af3c9b28.zip hdf5-9a155a538bb179c794c75780757ef3e6af3c9b28.tar.gz hdf5-9a155a538bb179c794c75780757ef3e6af3c9b28.tar.bz2 |
Cherry pick of 0225e6d5969
Diffstat (limited to 'test/dsets.c')
-rw-r--r-- | test/dsets.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/test/dsets.c b/test/dsets.c index d017ff3..88eb720 100644 --- a/test/dsets.c +++ b/test/dsets.c @@ -12775,20 +12775,23 @@ error: } /* end dls_01_write_data() */ static herr_t -dls_01_read_stuff( hid_t fid ) +dls_01_read_stuff(hid_t fid) { int status = 0; hid_t did = 0; H5O_info_t info; - did = H5Dopen2( fid, DLS_01_DATASET, H5P_DEFAULT ); - if ( did <= 0 ) TEST_ERROR + did = H5Dopen2(fid, DLS_01_DATASET, H5P_DEFAULT); + if(did <= 0) + TEST_ERROR - status = H5Oget_info2( did, &info, H5O_INFO_BASIC ); - if ( status != 0 ) TEST_ERROR + status = H5Oget_info2(did, &info, H5O_INFO_BASIC ); + if(status != 0) + TEST_ERROR - status = H5Dclose( did ); - if ( status != 0 ) TEST_ERROR + status = H5Dclose(did); + if(status != 0) + TEST_ERROR return SUCCEED; |