summaryrefslogtreecommitdiff
path: root/ACE/tests/Handle_Set_Test.cpp
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2021-03-26 16:41:03 +0100
committerJohnny Willemsen <jwillemsen@remedy.nl>2021-03-26 16:41:03 +0100
commit2672e1078fbec8c3c95e0ab9f8d9527b81fa0693 (patch)
tree56b32b8d85f1d655cd64e52407b8334155d76010 /ACE/tests/Handle_Set_Test.cpp
parent09442240972bf6c0d2223e4ee4fa86134ef8af08 (diff)
downloadATCD-2672e1078fbec8c3c95e0ab9f8d9527b81fa0693.tar.gz
Extend handle set test further
* ACE/tests/Handle_Set_Test.cpp:
Diffstat (limited to 'ACE/tests/Handle_Set_Test.cpp')
-rw-r--r--ACE/tests/Handle_Set_Test.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/ACE/tests/Handle_Set_Test.cpp b/ACE/tests/Handle_Set_Test.cpp
index 780e3aa4c13..8fdb69ac7f4 100644
--- a/ACE/tests/Handle_Set_Test.cpp
+++ b/ACE/tests/Handle_Set_Test.cpp
@@ -21,7 +21,7 @@ static void
test_duplicates (size_t count)
{
ACE_DEBUG ((LM_DEBUG,
- ACE_TEXT ("Testing duplicated\n")));
+ ACE_TEXT ("Testing %B duplicates\n"), count));
size_t duplicates = 0;
size_t sets = 0;
@@ -58,6 +58,12 @@ test_duplicates (size_t count)
ACE_Handle_Set copy_set (handle_set);
ACE_TEST_ASSERT (copy_set.num_set () + duplicates == sets);
+
+ ACE_Handle_Set move_set (std::move(handle_set));
+ ACE_TEST_ASSERT (move_set.num_set () + duplicates == sets);
+
+ ACE_Handle_Set move_assign = std::move(copy_set);
+ ACE_TEST_ASSERT (move_assign.num_set () + duplicates == sets);
}
// This is the vector of handles to test. These numbers are chosen to