diff options
Diffstat (limited to 'ACE/tests/Handle_Set_Test.cpp')
-rw-r--r-- | ACE/tests/Handle_Set_Test.cpp | 8 |
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 |