Skip to content

Commit 19f7d33

Browse files
authored
Fix failure of create_numa_task_arenas/selector combo test (#1998)
1 parent fb390c5 commit 19f7d33

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/tbb/test_arena_constraints.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,7 @@ TEST_CASE("Test constraints argument in create_numa_task_arenas") {
122122
system_info::initialize();
123123
auto numa_indices = tbb::info::numa_nodes();
124124
for (const auto& constraints : generate_constraints_variety()) {
125-
multi_core_type_helper helper{constraints};
126-
if (helper.selectable()) {
125+
if (tbb::detail::multi_core_type_codec::is_encoded(constraints.core_type)) {
127126
continue; // skip constraints with custom core type selector, because create_numa_task_arenas doesn't support it
128127
}
129128
auto numa_task_arenas = tbb::create_numa_task_arenas(constraints);
@@ -132,7 +131,7 @@ TEST_CASE("Test constraints argument in create_numa_task_arenas") {
132131

133132
expected_constraint.set_numa_id(numa_indices[i]);
134133
test_constraints_affinity_and_concurrency(expected_constraint,
135-
helper,
134+
multi_core_type_helper{expected_constraint},
136135
get_arena_affinity(numa_task_arenas[i]));
137136
}
138137
}

0 commit comments

Comments
 (0)