From 7c935bbd09f1c34165267190087a461385f45c8d Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Fri, 19 Jan 2001 13:47:24 -0500 Subject: [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) --- test/th5s.c | 8 -------- 1 file changed, 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. -- cgit v0.12