summaryrefslogtreecommitdiffstats
path: root/fortran/test/tH5F.f90
diff options
context:
space:
mode:
authorElena Pourmal <epourmal@hdfgroup.org>2006-05-14 00:43:58 (GMT)
committerElena Pourmal <epourmal@hdfgroup.org>2006-05-14 00:43:58 (GMT)
commit0742585e9aaacf513a5ab44da5e4755c9c0c5d60 (patch)
tree43caca4f46fcf3e434db97b376f265ee0f039a18 /fortran/test/tH5F.f90
parent916399d31ed063c0d7e8b7aba864841168a37b93 (diff)
downloadhdf5-0742585e9aaacf513a5ab44da5e4755c9c0c5d60.zip
hdf5-0742585e9aaacf513a5ab44da5e4755c9c0c5d60.tar.gz
hdf5-0742585e9aaacf513a5ab44da5e4755c9c0c5d60.tar.bz2
[svn-r12347] Purpose: Maintenance/bug fix
Description: When --enable-group-revision flag was used, h5fget_filesize_f function returned different value from expected one. Test failed with false negative result. Solution: Added Fortran function h5_group_revision_f and its C stub to check if macro H5_GROUP_REVISION is defined. Expected value from h5fget_filesize_f is set up accordingly. Platforms tested: copper, shanti and heping with and without --enable-group-revision configuration flag Misc. update:
Diffstat (limited to 'fortran/test/tH5F.f90')
-rw-r--r--fortran/test/tH5F.f9011
1 files changed, 10 insertions, 1 deletions
diff --git a/fortran/test/tH5F.f90 b/fortran/test/tH5F.f90
index f85d3e9..2cc4766 100644
--- a/fortran/test/tH5F.f90
+++ b/fortran/test/tH5F.f90
@@ -696,6 +696,8 @@
LOGICAL, INTENT(IN) :: cleanup
INTEGER, INTENT(OUT) :: total_error
INTEGER :: error
+ INTEGER flag
+ INTEGER :: free_space_out
!
CHARACTER(LEN=10), PARAMETER :: filename = "file_space"
@@ -745,9 +747,16 @@
! Check the free space now
CALL h5fget_freespace_f(fid, free_space, error)
+ CALL h5_group_revision_f(flag)
CALL check("h5fget_freespace_f",error,total_error)
+ if(flag .eq. 1) then
+ free_space_out = 232
+ else
+ free_space_out = 1024
+ endif
+ if(error .eq.0 .and. free_space .ne. free_space_out) then
! if(error .eq.0 .and. free_space .ne. 232) then
- if(error .eq.0 .and. free_space .ne. 1024) then
+! if(error .eq.0 .and. free_space .ne. 1024) then
total_error = total_error + 1
write(*,*) "3: Wrong amount of free space reported, ", free_space
endif