Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #256 from dawgfoto/semaphoreTimeout
Browse files Browse the repository at this point in the history
increase timeout factor to avoid spurious test fails on FreeBSD
  • Loading branch information
MartinNowak committed Jun 28, 2012
2 parents c813532 + abf953e commit 8f8d4b3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/sync/semaphore.d
Expand Up @@ -448,7 +448,10 @@ version( unittest )
Thread.yield();
}

for( int i = numConsumers * 100_000; i > 0; --i )
version (FreeBSD) enum factor = 500_000;
else enum factor = 10_000;

for( int i = numConsumers * factor; i > 0; --i )
{
synchronized( synComplete )
{
Expand Down

0 comments on commit 8f8d4b3

Please sign in to comment.