mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 08:25:43 +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