|
|
@ -136,11 +136,19 @@ TEST_CASE("Disruptor works sequentially") { |
|
|
|
} |
|
|
|
|
|
|
|
TEST_CASE("Fails if buffer too small") { |
|
|
|
REQUIRE_THROWS_AS(disruptor<OverflowWait>(nullptr, page_size), disruptor_exception); |
|
|
|
REQUIRE_THROWS_AS(disruptor<strategy>(nullptr, page_size), disruptor_exception); |
|
|
|
} |
|
|
|
|
|
|
|
TEST_CASE("Fails if buffer size is 0") { |
|
|
|
REQUIRE_THROWS_AS(disruptor<OverflowWait>(nullptr, 0), disruptor_exception); |
|
|
|
REQUIRE_THROWS_AS(disruptor<strategy>(nullptr, 0), disruptor_exception); |
|
|
|
} |
|
|
|
|
|
|
|
TEST_CASE("Fails if buffer too small") { |
|
|
|
REQUIRE_THROWS_AS(disruptor<strategy_that_overflows>(nullptr, page_size), disruptor_exception); |
|
|
|
} |
|
|
|
|
|
|
|
TEST_CASE("Fails if buffer size is 0") { |
|
|
|
REQUIRE_THROWS_AS(disruptor<strategy_that_overflows>(nullptr, 0), disruptor_exception); |
|
|
|
} |
|
|
|
|
|
|
|
TEST_CASE("Disruptor works on overflow mode if things are not too contentious", "[long][unstable]") { |
|
|
|