Skip to content

Commit

Permalink
iox-#27 Disable a death test for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
elBoberido committed Jan 7, 2022
1 parent 1c4cc6f commit b788f15
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class ChunkDistributor_test : public Test

static constexpr std::chrono::milliseconds BLOCKING_DURATION{100};

static constexpr iox::units::Duration DEADLOCK_TIMEOUT{5_s};
static constexpr iox::units::Duration DEADLOCK_TIMEOUT{2_s};
Watchdog deadlockWatchdog{DEADLOCK_TIMEOUT};
;
};
Expand All @@ -129,13 +129,16 @@ constexpr std::chrono::milliseconds ChunkDistributor_test<PolicyType>::BLOCKING_
template <typename PolicyType>
constexpr iox::units::Duration ChunkDistributor_test<PolicyType>::DEADLOCK_TIMEOUT;

/// @todo iox-#898: this is broken on macOS and triggers the watchdog, even with 5 seconds timeout
#if !defined(__APPLE__)
TYPED_TEST(ChunkDistributor_test, AddingNullptrQueueDoesNotWork)
{
auto sutData = this->getChunkDistributorData();
typename TestFixture::ChunkDistributor_t sut(sutData.get());

EXPECT_DEATH(IOX_DISCARD_RESULT(sut.tryAddQueue(nullptr)), ".*");
}
#endif

TYPED_TEST(ChunkDistributor_test, NewChunkDistributorHasNoQueues)
{
Expand Down

0 comments on commit b788f15

Please sign in to comment.