summaryrefslogtreecommitdiffstats
path: root/hl/test
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2008-12-01 20:58:00 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2008-12-01 20:58:00 (GMT)
commit3f26602c9e83c756115e9b2270bc8c1af5eaed0a (patch)
tree0a6d7088c65e5151c495894368ad6bf81ad4eab8 /hl/test
parent78e90e5780e2f313a745e0c3b4eac5e3ee8a6db8 (diff)
downloadhdf5-3f26602c9e83c756115e9b2270bc8c1af5eaed0a.zip
hdf5-3f26602c9e83c756115e9b2270bc8c1af5eaed0a.tar.gz
hdf5-3f26602c9e83c756115e9b2270bc8c1af5eaed0a.tar.bz2
[svn-r16145] Merging with trunk regarding revisions
16132 some chunks were not deleted for some cases, the comparison to check for chunk offsets outside of the new dimensions was chunk_offset[ i ] > dimension [ i ] and it must be chunk_offset[ i ] >= dimension [ i ] 16133 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) 16143 add a test for recent fixes of H5Dset_extent tested: windows, linux
Diffstat (limited to 'hl/test')
-rw-r--r--hl/test/test_table.c16
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();
}