@@ -109,13 +109,13 @@ void wait_all(
109
109
}
110
110
}
111
111
112
- TEST_CASE (" ThreadPool: Test empty" , " [threadpool]" ) {
112
+ TEST_CASE (" ThreadPool: Test empty" , " [threadpool][empty] " ) {
113
113
for (int i = 0 ; i < 10 ; i++) {
114
114
ThreadPool pool{4 };
115
115
}
116
116
}
117
117
118
- TEST_CASE (" ThreadPool: Test single thread" , " [threadpool]" ) {
118
+ TEST_CASE (" ThreadPool: Test single thread" , " [threadpool][single-thread] " ) {
119
119
bool use_wait = GENERATE (true , false );
120
120
std::atomic<int > result = 0 ; // needs to be atomic b/c scavenging thread can
121
121
// run in addition to thread pool
@@ -133,7 +133,8 @@ TEST_CASE("ThreadPool: Test single thread", "[threadpool]") {
133
133
REQUIRE (result == 100 );
134
134
}
135
135
136
- TEST_CASE (" ThreadPool: Test multiple threads" , " [threadpool]" ) {
136
+ TEST_CASE (
137
+ " ThreadPool: Test multiple threads" , " [threadpool][multiple-threads]" ) {
137
138
bool use_wait = GENERATE (true , false );
138
139
std::atomic<int > result (0 );
139
140
std::vector<ThreadPool::Task> results;
@@ -152,7 +153,7 @@ struct AtomicHolder {
152
153
std::atomic<int > val_;
153
154
};
154
155
155
- TEST_CASE (" ThreadPool: Test no wait" , " [threadpool]" ) {
156
+ TEST_CASE (" ThreadPool: Test no wait" , " [threadpool][no-wait] " ) {
156
157
{
157
158
ThreadPool pool{4 };
158
159
auto ptr = tdb::make_shared<AtomicHolder>(HERE (), 0 );
@@ -224,7 +225,8 @@ TEST_CASE(
224
225
// }
225
226
// }
226
227
227
- TEST_CASE (" ThreadPool: Test recursion, simplest case" , " [threadpool]" ) {
228
+ TEST_CASE (
229
+ " ThreadPool: Test recursion, simplest case" , " [threadpool][recursion]" ) {
228
230
bool use_wait = GENERATE (true , false );
229
231
ThreadPool pool{1 };
230
232
@@ -247,7 +249,7 @@ TEST_CASE("ThreadPool: Test recursion, simplest case", "[threadpool]") {
247
249
REQUIRE (result == 1 );
248
250
}
249
251
250
- TEST_CASE (" ThreadPool: Test recursion" , " [threadpool]" ) {
252
+ TEST_CASE (" ThreadPool: Test recursion" , " [threadpool][recursion] " ) {
251
253
bool use_wait = GENERATE (true , false );
252
254
size_t num_threads = 0 ;
253
255
SECTION (" - One thread" ) {
@@ -320,7 +322,9 @@ TEST_CASE("ThreadPool: Test recursion", "[threadpool]") {
320
322
cv.wait (ul);
321
323
}
322
324
323
- TEST_CASE (" ThreadPool: Test recursion, two pools" , " [threadpool]" ) {
325
+ TEST_CASE (
326
+ " ThreadPool: Test recursion, two pools" ,
327
+ " [threadpool][recursion][two-pools]" ) {
324
328
bool use_wait = GENERATE (true , false );
325
329
size_t num_threads = 0 ;
326
330
@@ -428,7 +432,7 @@ TEST_CASE("ThreadPool: Test recursion, two pools", "[threadpool]") {
428
432
}
429
433
}
430
434
431
- TEST_CASE (" ThreadPool: Test Exceptions" , " [threadpool]" ) {
435
+ TEST_CASE (" ThreadPool: Test Exceptions" , " [threadpool][exceptions] " ) {
432
436
bool use_wait = GENERATE (true , false );
433
437
std::atomic<int > result (0 );
434
438
ThreadPool pool{7 };
0 commit comments