Skip to content

Commit

Permalink
Merge pull request #950 from msimberg/resource-partitioner-valgrind
Browse files Browse the repository at this point in the history
Enable valgrind testing in `resource_partitioner` module
  • Loading branch information
msimberg authored Jan 11, 2024
2 parents 9e77b93 + acaa4fa commit 274b600
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
1 change: 1 addition & 0 deletions .github/workflows/linux_valgrind.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ jobs:
tests.{regressions,unit}.modules.functional \
tests.unit.modules.memory \
tests.unit.modules.properties \
tests.{examples,regressions,unit}.modules.resource_partitioner \
tests.unit.modules.runtime \
tests.unit.modules.schedulers \
tests.unit.modules.string_util \
Expand Down
2 changes: 1 addition & 1 deletion libs/pika/resource_partitioner/examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ foreach(example_program ${example_programs})
if(PIKA_WITH_TESTS AND PIKA_WITH_TESTS_EXAMPLES)
pika_add_example_test(
"modules.resource_partitioner" ${example_program}
${${example_program}_PARAMETERS}
${${example_program}_PARAMETERS} VALGRIND
)
endif()
endforeach()
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ foreach(test ${tests})
)

pika_add_regression_test(
"modules.resource_partitioner" ${test} ${${test}_PARAMETERS}
"modules.resource_partitioner" ${test} ${${test}_PARAMETERS} VALGRIND
)

endforeach()
2 changes: 1 addition & 1 deletion libs/pika/resource_partitioner/tests/unit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ foreach(test ${tests})
)

pika_add_unit_test(
"modules.resource_partitioner" ${test} ${${test}_PARAMETERS}
"modules.resource_partitioner" ${test} ${${test}_PARAMETERS} VALGRIND
)

endforeach()
Original file line number Diff line number Diff line change
Expand Up @@ -508,12 +508,7 @@ namespace pika::threads::detail {
}

// ----------------------------------------------------------------
static void deallocate(threads::detail::thread_data* p)
{
using threads::detail::thread_data;
p->~thread_data();
thread_alloc_.deallocate(p, 1);
}
static void deallocate(threads::detail::thread_data* p) { p->destroy(); }

// ----------------------------------------------------------------
void add_to_thread_map(threads::detail::thread_id_type tid)
Expand Down

0 comments on commit 274b600

Please sign in to comment.