Fixed mpmc_q test for osx in travis

This commit is contained in:
gabime 2018-08-17 17:30:33 +03:00
parent 9ad9cfb898
commit 8418131ae3
2 changed files with 12 additions and 4 deletions

View File

@ -79,9 +79,17 @@ matrix:
addons: *clang6
# 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
- 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:

View File

@ -12,7 +12,7 @@ static milliseconds millis_from(const test_clock::time_point &tp0)
TEST_CASE("dequeue-empty-nowait", "[mpmc_blocking_q]")
{
size_t q_size = 100;
milliseconds tolerance_wait(30);
milliseconds tolerance_wait(10);
spdlog::details::mpmc_blocking_queue<int> q(q_size);
int popped_item;
@ -30,7 +30,7 @@ TEST_CASE("dequeue-empty-wait", "[mpmc_blocking_q]")
size_t q_size = 100;
milliseconds wait_ms(250);
milliseconds tolerance_wait(30);
milliseconds tolerance_wait(100);
spdlog::details::mpmc_blocking_queue<int> q(q_size);
int popped_item;
@ -50,7 +50,7 @@ TEST_CASE("enqueue_nowait", "[mpmc_blocking_q]")
size_t q_size = 1;
spdlog::details::mpmc_blocking_queue<int> q(q_size);
milliseconds tolerance_wait(30);
milliseconds tolerance_wait(10);
q.enqueue(1);
REQUIRE(q.overrun_counter() == 0);