Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 6 additions & 0 deletions modules/task/tests/task_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ TEST(TaskTests, CheckInt32t) {
}

TEST(TaskTests, CheckInt32tSlow) {
#ifdef __APPLE__
GTEST_SKIP() << "Skipped on macOS due to time fluctuations.";
#endif
std::vector<int32_t> in(20, 1);
ppc::test::FakeSlowTask<std::vector<int32_t>, int32_t> test_task(in);
ASSERT_EQ(test_task.Validation(), true);
Expand Down Expand Up @@ -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<std::vector<int32_t>, int32_t> {
explicit SlowTask(const std::vector<int32_t> &in) {
this->GetInput() = in;
Expand Down
Loading