Commit 8418131a authored by gabime's avatar gabime

Fixed mpmc_q test for osx in travis

parent 9ad9cfb8
...@@ -79,9 +79,17 @@ matrix: ...@@ -79,9 +79,17 @@ matrix:
addons: *clang6 addons: *clang6
# osx # osx
- env: CLANG_VERSION=6.0 BUILD_TYPE=Release CPP=11 ASAN=Off TSAN=Off - env: BUILD_TYPE=Release CPP=11 ASAN=Off TSAN=Off
os: osx os: osx
- env: BUILD_TYPE=Debug CPP=11 ASAN=On TSAN=Off
os: osx
- env: BUILD_TYPE=Debug CPP=11 ASAN=Off TSAN=On
os: osx
before_script: before_script:
......
...@@ -12,7 +12,7 @@ static milliseconds millis_from(const test_clock::time_point &tp0) ...@@ -12,7 +12,7 @@ static milliseconds millis_from(const test_clock::time_point &tp0)
TEST_CASE("dequeue-empty-nowait", "[mpmc_blocking_q]") TEST_CASE("dequeue-empty-nowait", "[mpmc_blocking_q]")
{ {
size_t q_size = 100; size_t q_size = 100;
milliseconds tolerance_wait(30); milliseconds tolerance_wait(10);
spdlog::details::mpmc_blocking_queue<int> q(q_size); spdlog::details::mpmc_blocking_queue<int> q(q_size);
int popped_item; int popped_item;
...@@ -30,7 +30,7 @@ TEST_CASE("dequeue-empty-wait", "[mpmc_blocking_q]") ...@@ -30,7 +30,7 @@ TEST_CASE("dequeue-empty-wait", "[mpmc_blocking_q]")
size_t q_size = 100; size_t q_size = 100;
milliseconds wait_ms(250); milliseconds wait_ms(250);
milliseconds tolerance_wait(30); milliseconds tolerance_wait(100);
spdlog::details::mpmc_blocking_queue<int> q(q_size); spdlog::details::mpmc_blocking_queue<int> q(q_size);
int popped_item; int popped_item;
...@@ -50,7 +50,7 @@ TEST_CASE("enqueue_nowait", "[mpmc_blocking_q]") ...@@ -50,7 +50,7 @@ TEST_CASE("enqueue_nowait", "[mpmc_blocking_q]")
size_t q_size = 1; size_t q_size = 1;
spdlog::details::mpmc_blocking_queue<int> q(q_size); spdlog::details::mpmc_blocking_queue<int> q(q_size);
milliseconds tolerance_wait(30); milliseconds tolerance_wait(10);
q.enqueue(1); q.enqueue(1);
REQUIRE(q.overrun_counter() == 0); REQUIRE(q.overrun_counter() == 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment