diff options
author | James Laird <jlaird@hdfgroup.org> | 2005-03-28 17:07:18 (GMT) |
---|---|---|
committer | James Laird <jlaird@hdfgroup.org> | 2005-03-28 17:07:18 (GMT) |
commit | 0faa9455fcdfdbfb323e22c7eb8df0eee07601b2 (patch) | |
tree | 1bacf3b5fd5a394f7a3591387783b211dae67411 /hl | |
parent | 0639a0d474bbeb699b91dc494ce4bf5e3d4f59e6 (diff) | |
download | hdf5-0faa9455fcdfdbfb323e22c7eb8df0eee07601b2.zip hdf5-0faa9455fcdfdbfb323e22c7eb8df0eee07601b2.tar.gz hdf5-0faa9455fcdfdbfb323e22c7eb8df0eee07601b2.tar.bz2 |
[svn-r10461]
Purpose:
Bug fix -- ensure that C++ packet table test cleans up its output file.
Platforms tested:
sleipnir (minor change)
Diffstat (limited to 'hl')
-rw-r--r-- | hl/c++/test/ptableTest.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/hl/c++/test/ptableTest.cpp b/hl/c++/test/ptableTest.cpp index e82d581..6ca32ec 100644 --- a/hl/c++/test/ptableTest.cpp +++ b/hl/c++/test/ptableTest.cpp @@ -1,12 +1,14 @@ #include "ptableTest.h" +#define TEST_FILE "packettest.h5" + /* Main test function */ int main(void) { herr_t err; /* Create new HDF5 file */ - fileID = H5Fcreate("test.h5", H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT); + fileID = H5Fcreate(TEST_FILE, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT); if(fileID <0) fprintf(stderr, "Couldn't open file.\n"); else { @@ -29,6 +31,9 @@ int main(void) err = H5Fclose(fileID); if( err < 0 ) fprintf(stderr, "Failed to close file.\n"); + + /* Delete the file */ + remove(TEST_FILE); } } |