mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-23 22:22:05 +08:00
Fixed mpmc_q test for osx in travis
This commit is contained in:
parent
9ad9cfb898
commit
8418131ae3
10
.travis.yml
10
.travis.yml
@ -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)
|
|||||||
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]")
|
|||||||
|
|
||||||
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]")
|
|||||||
|
|
||||||
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user