@@ -10,11 +10,11 @@ TEST(util_tests, check_unset_env) {
10
10
#ifndef _WIN32
11
11
int save_var = ppc::util::GetPPCNumThreads ();
12
12
13
- unsetenv (" OMP_NUM_THREADS" ); // NOLINT(concurrency-mt-unsafe,misc-include-cleaner )
13
+ unsetenv (" OMP_NUM_THREADS" ); // NOLINT(concurrency-mt-unsafe)
14
14
15
15
EXPECT_EQ (ppc::util::GetPPCNumThreads (), 1 );
16
16
17
- setenv (" OMP_NUM_THREADS" , std::to_string (save_var).c_str (), 1 ); // NOLINT(concurrency-mt-unsafe,misc-include-cleaner )
17
+ setenv (" OMP_NUM_THREADS" , std::to_string (save_var).c_str (), 1 ); // NOLINT(concurrency-mt-unsafe)
18
18
#else
19
19
GTEST_SKIP ();
20
20
#endif
@@ -25,12 +25,11 @@ TEST(util_tests, check_set_env) {
25
25
int save_var = ppc::util::GetPPCNumThreads ();
26
26
27
27
const int num_threads = static_cast <int >(std::thread::hardware_concurrency ());
28
- // NOLINTNEXTLINE(concurrency-mt-unsafe,misc-include-cleaner)
29
- setenv (" OMP_NUM_THREADS" , std::to_string (num_threads).c_str (), 1 );
28
+ setenv (" OMP_NUM_THREADS" , std::to_string (num_threads).c_str (), 1 ); // NOLINT(concurrency-mt-unsafe)
30
29
31
30
EXPECT_EQ (ppc::util::GetPPCNumThreads (), num_threads);
32
31
33
- setenv (" OMP_NUM_THREADS" , std::to_string (save_var).c_str (), 1 ); // NOLINT(concurrency-mt-unsafe,misc-include-cleaner )
32
+ setenv (" OMP_NUM_THREADS" , std::to_string (save_var).c_str (), 1 ); // NOLINT(concurrency-mt-unsafe)
34
33
#else
35
34
GTEST_SKIP ();
36
35
#endif
0 commit comments