diff options
author | Scot Breitenfeld <brtnfld@hdfgroup.org> | 2008-09-30 21:05:39 (GMT) |
---|---|---|
committer | Scot Breitenfeld <brtnfld@hdfgroup.org> | 2008-09-30 21:05:39 (GMT) |
commit | 393100b2b64ff6180119649599926ca7f22682f8 (patch) | |
tree | 7c806161df2df5497bca4985bfedb87b626a5f00 /fortran/test/tH5Sselect.f90 | |
parent | 915ed3269683d30045d4c06b85ec76c792bcf4ac (diff) | |
download | hdf5-393100b2b64ff6180119649599926ca7f22682f8.zip hdf5-393100b2b64ff6180119649599926ca7f22682f8.tar.gz hdf5-393100b2b64ff6180119649599926ca7f22682f8.tar.bz2 |
[svn-r15737] Description:
Changed the tests so that the *.h5 test files are removed depending on the HDF5_NOCLEANUP environment variable.
bug 696
Diffstat (limited to 'fortran/test/tH5Sselect.f90')
-rw-r--r-- | fortran/test/tH5Sselect.f90 | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/fortran/test/tH5Sselect.f90 b/fortran/test/tH5Sselect.f90 index 25fcca2..7e11b61 100644 --- a/fortran/test/tH5Sselect.f90 +++ b/fortran/test/tH5Sselect.f90 @@ -1063,9 +1063,15 @@ SUBROUTINE test_select_point(cleanup, total_error) INTEGER :: i,j; !/* Counters */ ! struct pnt_iter pi; /* Custom Pointer iterator struct */ INTEGER :: error !/* Generic return value */ - CHARACTER(LEN=12) :: filename = 'h5s_hyper.h5' + CHARACTER(LEN=9) :: filename = 'h5s_hyper' + CHARACTER(LEN=80) :: fix_filename CHARACTER(LEN=1), DIMENSION(1:SPACE2_DIM1,1:SPACE2_DIM2) :: wbuf, rbuf - + + CALL h5_fixname_f(filename, fix_filename, H5P_DEFAULT_F, error) + IF (error .NE. 0) THEN + WRITE(*,*) "Cannot modify filename" + STOP + ENDIF xfer_plist = H5P_DEFAULT_F ! MESSAGE(5, ("Testing Element Selection Functions\n")); @@ -1086,7 +1092,7 @@ SUBROUTINE test_select_point(cleanup, total_error) !!$ *tbuf++=(uint8_t)((i*SPACE2_DIM2)+j); !/* Create file */ - CALL h5fcreate_f(filename, H5F_ACC_TRUNC_F, fid1, error) + CALL h5fcreate_f(fix_filename, H5F_ACC_TRUNC_F, fid1, error) CALL check("h5fcreate_f", error, total_error) !/* Create dataspace for dataset */ @@ -1327,6 +1333,10 @@ SUBROUTINE test_select_point(cleanup, total_error) CALL h5fclose_f(fid1, error) CALL check("h5fclose_f", error, total_error) + + IF(cleanup) CALL h5_cleanup_f(filename, H5P_DEFAULT_F, error) + CALL check("h5_cleanup_f", error, total_error) + END SUBROUTINE test_select_point |