diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2008-11-25 19:42:49 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2008-11-25 19:42:49 (GMT) |
commit | bd3e89868ad3b4f3c3a45a089675fa4b8250d21f (patch) | |
tree | 7636869ab56781fd1e564467b10a0d68def96172 /hl/test | |
parent | 7653aa4a6ad5bf584b96a31907a221ab23d3030e (diff) | |
download | hdf5-bd3e89868ad3b4f3c3a45a089675fa4b8250d21f.zip hdf5-bd3e89868ad3b4f3c3a45a089675fa4b8250d21f.tar.gz hdf5-bd3e89868ad3b4f3c3a45a089675fa4b8250d21f.tar.bz2 |
[svn-r16133] H5TBdelete_record was not handlong correctly records at the end of the table
added a ckeck that avoids to read these records if they are not needed (for pushing down the table)
tested: windows, linux
Diffstat (limited to 'hl/test')
-rw-r--r-- | hl/test/test_table.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/hl/test/test_table.c b/hl/test/test_table.c index 85fc70d..bd8dd79 100644 --- a/hl/test/test_table.c +++ b/hl/test/test_table.c @@ -818,6 +818,22 @@ int test_table(hid_t fid, int write) goto out; } } + + /*------------------------------------------------------------------------- + * Delete records, start at 0, delete 1 + * pos = 0 + * data= empty + *------------------------------------------------------------------------- + */ + dstart=0; drecords=1; + if (H5TBdelete_record(fid,"table3",dstart,drecords)<0) + goto out; + + if (H5TBget_table_info(fid,"table3",&rfields,&rrecords)<0) + goto out; + + if (rrecords) + goto out; PASSED(); } |