diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml index 4cd34645..13cdb64c 100644 --- a/.github/workflows/mac.yml +++ b/.github/workflows/mac.yml @@ -77,6 +77,7 @@ jobs: run: scripts/run_tests.py --running-type="processes" --counts 1 2 3 4 env: PPC_NUM_THREADS: 1 + PPC_TASK_MAX_TIME: 30 - name: Run tests (threads) run: scripts/run_tests.py --running-type="threads" --counts 1 2 3 4 env: diff --git a/modules/task/tests/task_tests.cpp b/modules/task/tests/task_tests.cpp index f7170e74..843ed7d6 100644 --- a/modules/task/tests/task_tests.cpp +++ b/modules/task/tests/task_tests.cpp @@ -90,6 +90,9 @@ TEST(TaskTests, CheckInt32t) { } TEST(TaskTests, CheckInt32tSlow) { +#ifdef __APPLE__ + GTEST_SKIP() << "Skipped on macOS due to time fluctuations."; +#endif std::vector in(20, 1); ppc::test::FakeSlowTask, int32_t> test_task(in); ASSERT_EQ(test_task.Validation(), true); @@ -278,6 +281,9 @@ TEST(TaskTest, TaskDestructorThrowsIfEmpty) { } TEST(TaskTest, InternalTimeTestThrowsIfTimeoutExceeded) { +#ifdef __APPLE__ + GTEST_SKIP() << "Skipped on macOS due to time fluctuations."; +#endif struct SlowTask : Task, int32_t> { explicit SlowTask(const std::vector &in) { this->GetInput() = in;