diff options
author | Scot Breitenfeld <brtnfld@hdfgroup.org> | 2014-09-30 22:16:33 (GMT) |
---|---|---|
committer | Scot Breitenfeld <brtnfld@hdfgroup.org> | 2014-09-30 22:16:33 (GMT) |
commit | f2535031952d9c848538043829d43108575cdce3 (patch) | |
tree | e453c00776fc144e3cd90bdab09ccece62b1efb5 /hl/fortran | |
parent | a9ac64296a8c819d842ffd1dff225c888870c8dc (diff) | |
download | hdf5-f2535031952d9c848538043829d43108575cdce3.zip hdf5-f2535031952d9c848538043829d43108575cdce3.tar.gz hdf5-f2535031952d9c848538043829d43108575cdce3.tar.bz2 |
[svn-r25642] merged changes 25614,25629,25631 into branch.
Diffstat (limited to 'hl/fortran')
-rw-r--r-- | hl/fortran/test/tsttable.f90 | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/hl/fortran/test/tsttable.f90 b/hl/fortran/test/tsttable.f90 index 66ec5c6..bb88abf 100644 --- a/hl/fortran/test/tsttable.f90 +++ b/hl/fortran/test/tsttable.f90 @@ -175,13 +175,30 @@ SUBROUTINE test_table1() CALL h5tbwrite_field_name_f(file_id,dsetname1,field_names(4),start,nrecords,type_sizer,& bufr,errcode) - !------------------------------------------------------------------------- ! read field !------------------------------------------------------------------------- + ! Read an invalid field, should fail + CALL h5tbread_field_name_f(file_id,dsetname1,'DoesNotExist',start,nrecords,type_sizec,& + bufsr,errcode) + + IF(errcode.GE.0)THEN + PRINT *, 'error in h5tbread_field_name_f' + CALL h5fclose_f(file_id, errcode) + CALL h5close_f(errcode) + STOP + ENDIF + + ! Read a valid field, should pass CALL h5tbread_field_name_f(file_id,dsetname1,field_names(1),start,nrecords,type_sizec,& bufsr,errcode) + IF(errcode.LT.0)THEN + PRINT *, 'error in h5tbread_field_name_f' + CALL h5fclose_f(file_id, errcode) + CALL h5close_f(errcode) + STOP + ENDIF ! ! compare read and write buffers. @@ -329,8 +346,6 @@ SUBROUTINE test_table1() ! we insert a field callsed "field5" with the same type and buffer as field 4 (Real) !------------------------------------------------------------------------- - - CALL test_begin(' Insert field ') CALL h5tbinsert_field_f(file_id,dsetname1,"field5",field_types(4),4,bufr,errcode) |