diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2001-01-19 18:47:24 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2001-01-19 18:47:24 (GMT) |
commit | 7c935bbd09f1c34165267190087a461385f45c8d (patch) | |
tree | 39af1da1158da7db12274a461606239de21ef38b | |
parent | 777b8ed94b1099e1cfe6a46ffb5290803d2f2c48 (diff) | |
download | hdf5-7c935bbd09f1c34165267190087a461385f45c8d.zip hdf5-7c935bbd09f1c34165267190087a461385f45c8d.tar.gz hdf5-7c935bbd09f1c34165267190087a461385f45c8d.tar.bz2 |
[svn-r3307] Purpose:
Code cleanup
Description:
File was being opened around several dataspace operations which don't
need the file to be open.
Solution:
Removed file open/close around the dataspace operations.
Platforms tested:
FreeBSD 4.2 (hawkwind)
-rw-r--r-- | test/th5s.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/test/th5s.c b/test/th5s.c index eceaf02..ccec8c2 100644 --- a/test/th5s.c +++ b/test/th5s.c @@ -102,10 +102,6 @@ test_h5s_basic(void) /* Output message about test being performed */ MESSAGE(5, ("Testing Dataspace Manipulation\n")); - /* Create file */ - fid1 = H5Fcreate(FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT); - CHECK(fid1, FAIL, "H5Fcreate"); - sid1 = H5Screate_simple(SPACE1_RANK, dims1, NULL); CHECK(sid1, FAIL, "H5Screate_simple"); @@ -148,10 +144,6 @@ test_h5s_basic(void) ret = H5Sclose(sid2); CHECK(ret, FAIL, "H5Sclose"); - /* Close first file */ - ret = H5Fclose(fid1); - CHECK(ret, FAIL, "H5Fclose"); - /* * Check to be sure we can't create a simple data space that has too many * dimensions. |