Skip to content

Commit 9940b30

Browse files
authored
Fix
1 parent 2e74ff5 commit 9940b30

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

modules/core/util/tests/util.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,10 @@ TEST(util_tests, extracts_correct_namespace) {
1616
EXPECT_EQ(kNs, "my::nested");
1717
}
1818

19-
TEST(util_tests, GetNumThreadsEnvUnsetReturn) {
19+
TEST(util_tests, threads_control_check_openmp_disabled_valgrind) {
2020
const auto num_threads_env_var = env::get<int>("PPC_NUM_THREADS");
2121

22-
if (num_threads_env_var.has_value()) {
23-
EXPECT_EQ(ppc::util::GetNumThreads(), omp_get_max_threads());
24-
} else {
25-
GTEST_SKIP() << "PPC_NUM_THREADS environment variable is set, skipping test";
26-
}
22+
EXPECT_EQ(ppc::util::GetNumThreads(), omp_get_max_threads());
2723
}
2824

2925
namespace test_ns {

0 commit comments

Comments
 (0)