* Rename a bunch of threads with the same basename (expect_multiple=true), ensuring suffixes are * applied properly. */
| 51 | * applied properly. |
| 52 | */ |
| 53 | BOOST_AUTO_TEST_CASE(util_threadnames_test_rename_threaded) |
| 54 | { |
| 55 | std::set<std::string> names = RenameEnMasse(100); |
| 56 | |
| 57 | BOOST_CHECK_EQUAL(names.size(), 100U); |
| 58 | |
| 59 | // Names "test_thrd.[n]" should exist for n = [0, 99] |
| 60 | for (int i = 0; i < 100; ++i) { |
| 61 | BOOST_CHECK(names.contains(TEST_THREAD_NAME_BASE + ToString(i))); |
| 62 | } |
| 63 | |
| 64 | } |
| 65 | |
| 66 | BOOST_AUTO_TEST_SUITE_END() |
nothing calls this directly
no test coverage detected