summaryrefslogtreecommitdiffstats
path: root/fortran/test/tH5I.f90
diff options
context:
space:
mode:
authorScot Breitenfeld <brtnfld@hdfgroup.org>2009-04-17 17:13:01 (GMT)
committerScot Breitenfeld <brtnfld@hdfgroup.org>2009-04-17 17:13:01 (GMT)
commitb0cecde98bdebf47ab52bd3d1d98b0b12f7114ae (patch)
tree10bd931fb0aa293a2906515e6ed807e215f229de /fortran/test/tH5I.f90
parent4e26920aafe4c3cc0650819e4b328f95fa27963f (diff)
downloadhdf5-b0cecde98bdebf47ab52bd3d1d98b0b12f7114ae.zip
hdf5-b0cecde98bdebf47ab52bd3d1d98b0b12f7114ae.tar.gz
hdf5-b0cecde98bdebf47ab52bd3d1d98b0b12f7114ae.tar.bz2
[svn-r16780] Description:
Added tests for the new APIs: H5D_H5DGET_ACCESS_PLIST_F H5I_H5IIS_VALID_F H5P_H5PSET_CHUNK_CACHE_F H5P_H5PGET_CHUNK_CACHE_F Platforms tested: smirom: pgf90, ifort linew liberty: gcc43, gfortran43, gcc44, gfortran44
Diffstat (limited to 'fortran/test/tH5I.f90')
-rw-r--r--fortran/test/tH5I.f9024
1 files changed, 24 insertions, 0 deletions
diff --git a/fortran/test/tH5I.f90 b/fortran/test/tH5I.f90
index 1ef7ba2..c34bd09 100644
--- a/fortran/test/tH5I.f90
+++ b/fortran/test/tH5I.f90
@@ -60,6 +60,30 @@
INTEGER :: ref_count ! Reference count for IDs
+ INTEGER(hid_t) :: dtype ! datatype id
+ LOGICAL :: tri_ret ! value
+
+ !
+ ! Tests the function H5Iis_valid_f
+ !
+ ! check that the ID is not valid
+ dtype = -1
+ CALL H5Iis_valid_f(dtype, tri_ret, error)
+ CALL check("H5Iis_valid_f", error, total_error)
+ CALL VerifyLogical("H5Iis_valid_f", tri_ret, .FALSE., total_error)
+
+ ! Create a datatype id
+ CALL H5Tcopy_f(H5T_NATIVE_INTEGER,dtype,error)
+ CALL check("H5Tcopy_f", error, total_error)
+
+ ! Check that the ID is valid
+ CALL H5Iis_valid_f(dtype, tri_ret, error)
+ CALL check("H5Iis_valid_f", error, total_error)
+ CALL VerifyLogical("H5Tequal_f", tri_ret, .TRUE., total_error)
+
+ CALL H5Tclose_f(dtype, error)
+ CALL check("H5Tclose_f", error, total_error)
+
!
! Create a new file using default properties.
!