diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2007-05-22 19:35:24 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2007-05-22 19:35:24 (GMT) |
commit | 987146cc8e2853ed164769c9de5c2837385ae114 (patch) | |
tree | e72ac81835a1f4dee32af1c8e26a45ee829271d1 /tools/h5repack/h5repacktst.c | |
parent | 4d5673c3c0372f577f457c7e6def7d0d3b59c86c (diff) | |
download | hdf5-987146cc8e2853ed164769c9de5c2837385ae114.zip hdf5-987146cc8e2853ed164769c9de5c2837385ae114.tar.gz hdf5-987146cc8e2853ed164769c9de5c2837385ae114.tar.bz2 |
[svn-r13793]
Clean temporary test files
Tested: linux, SunOS
Note: the files outside tools were generated by bin/reconfigure
Diffstat (limited to 'tools/h5repack/h5repacktst.c')
-rw-r--r-- | tools/h5repack/h5repacktst.c | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/tools/h5repack/h5repacktst.c b/tools/h5repack/h5repacktst.c index 6d1feaf..6d1888c 100644 --- a/tools/h5repack/h5repacktst.c +++ b/tools/h5repack/h5repacktst.c @@ -74,6 +74,9 @@ const char *H5REPACK_FILENAMES[] = { NULL }; +#define H5REPACK_EXTFILE "h5repack_ext.bin" + + const char *progname = "h5repacktst"; int d_status = EXIT_SUCCESS; @@ -136,7 +139,6 @@ int main (void) #if defined (H5_HAVE_FILTER_SZIP) int szip_can_encode = 0; #endif - hid_t fapl; /* initialize */ memset(&diff_options, 0, sizeof (diff_opt_t)); @@ -145,10 +147,6 @@ int main (void) /* run tests */ puts("Testing h5repack:"); - /* setup */ - h5_reset(); - fapl = h5_fileaccess(); - /* make the test files */ TESTING(" generating datasets"); if (make_testfiles()<0) @@ -1305,14 +1303,21 @@ if (szip_can_encode) { /*------------------------------------------------------------------------- - * end + * clean temporary test files *------------------------------------------------------------------------- */ + { + hid_t fapl; + + /* setup */ + h5_reset(); + fapl = h5_fileaccess(); + h5_cleanup(H5REPACK_FILENAMES, fapl); + + } puts("All h5repack tests passed."); - h5_cleanup(H5REPACK_FILENAMES, fapl); - return 0; error: @@ -2695,7 +2700,7 @@ int make_external(hid_t loc_id) /* create */ if ((dcpl = H5Pcreate(H5P_DATASET_CREATE))<0) goto out; - if (H5Pset_external(dcpl, "h5repack_ext.bin", (off_t)0, size)<0) + if (H5Pset_external(dcpl, H5REPACK_EXTFILE, (off_t)0, size)<0) goto out; if ((sid = H5Screate_simple(1,cur_size, max_size))<0) goto out; |