mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-24 09:31:34 +08:00
Added some mpmc_q tests
This commit is contained in:
parent
057bf1b92d
commit
4a871b9792
@ -93,13 +93,13 @@ TEST_CASE("full_queue", "[mpmc_blocking_q]")
|
||||
|
||||
for(int i = 1; i < static_cast<int>(q_size); i++)
|
||||
{
|
||||
int item;
|
||||
int item=-1;
|
||||
q.dequeue_for(item, milliseconds(0));
|
||||
REQUIRE(item == i);
|
||||
}
|
||||
|
||||
|
||||
// last item pushed has overridden the oldest.
|
||||
int item;
|
||||
int item=-1;
|
||||
q.dequeue_for(item, milliseconds(0));
|
||||
REQUIRE(item == 123456);
|
||||
}
|
Loading…
Reference in New Issue
Block a user