diff options
author | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-04-27 22:07:05 +0000 |
---|---|---|
committer | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-04-27 22:07:05 +0000 |
commit | 355ab976f7145c5df1019138a50913d4e91dd815 (patch) | |
tree | 0b4bbae22cd6275d19ed6f1373c49ce66acc1fc7 /tests/Hash_Map_Manager_Test.cpp | |
parent | 1f0a6d6974c5078ce1619b98cb03f02d61fe059e (diff) | |
download | ATCD-355ab976f7145c5df1019138a50913d4e91dd815.tar.gz |
ChangeLogTag: Thu Apr 27 16:53:49 2000 Irfan Pyarali <irfan@cs.wustl.edu>
Diffstat (limited to 'tests/Hash_Map_Manager_Test.cpp')
-rw-r--r-- | tests/Hash_Map_Manager_Test.cpp | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/tests/Hash_Map_Manager_Test.cpp b/tests/Hash_Map_Manager_Test.cpp index a346686f92a..3328b942921 100644 --- a/tests/Hash_Map_Manager_Test.cpp +++ b/tests/Hash_Map_Manager_Test.cpp @@ -27,7 +27,7 @@ ACE_RCSID(tests, Hash_Map_Manager_Test, "$Id$") -static const size_t STRING_TABLE_ENTRIES = 3; +static const size_t STRING_TABLE_ENTRIES = 3 * 2; static const size_t MAX_HASH = 6; typedef ACE_Hash_Map_Entry<const ACE_TCHAR *, @@ -202,6 +202,21 @@ run_test (void) } } + // Remove all the entries. + if (hash.unbind_all () != 0) + ACE_ERROR_RETURN ((LM_ERROR, + ASYS_TEXT ("unbind_all failed\n")), + -1); + + // Redo the <bind> operations. + for (i = 0; string_table[i].key_ != 0; i++) + if (hash.bind (string_table[i].key_, + string_table[i].value_) != 0) + ACE_ERROR_RETURN ((LM_ERROR, + ASYS_TEXT ("%p failed for %s \n"), + ASYS_TEXT ("bind"), + ASYS_MULTIBYTE_STRING (string_table[i].key_)), -1); + alloc.dump (); return 0; } |