summaryrefslogtreecommitdiffstats
path: root/test/tskiplist.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-11-29 19:55:18 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-11-29 19:55:18 (GMT)
commit51ed85b2775eba3923fb9b0c7ee887ff9284cc22 (patch)
treec76fb2b905945864e96824a4422420f314f2606b /test/tskiplist.c
parent3e99d8411ccf441b3172a21617d1323ebfff56f2 (diff)
downloadhdf5-51ed85b2775eba3923fb9b0c7ee887ff9284cc22.zip
hdf5-51ed85b2775eba3923fb9b0c7ee887ff9284cc22.tar.gz
hdf5-51ed85b2775eba3923fb9b0c7ee887ff9284cc22.tar.bz2
[svn-r9596] Purpose:
Code optimization Description: Retarget metadata cache code from using TBBT routines to using new skiplist routines, for a reasonable speedup (when dealing with dirty metadata) Platforms tested: FreeBSD 4.10 (sleipnir) w/parallel Solaris 2.7 (arabica) Too minor to require h5committest
Diffstat (limited to 'test/tskiplist.c')
-rw-r--r--test/tskiplist.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/tskiplist.c b/test/tskiplist.c
index 20bde76..cf88daf 100644
--- a/test/tskiplist.c
+++ b/test/tskiplist.c
@@ -181,6 +181,11 @@ test_skiplist_insert(void)
found_item=H5SL_search(slist,&search_key);
VERIFY(found_item, NULL, "H5SL_search");
+ /* Attempt to insert duplicate key (should fail) */
+ search_key=2;
+ ret=H5SL_insert(slist,&search_key,&search_key);
+ VERIFY(ret, FAIL, "H5SL_insert");
+
/* Close the skip list */
ret=H5SL_close(slist);
CHECK(ret, FAIL, "H5SL_close");