-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Several unit tests utilize very short duration sleeps (e.g., 100 usec) while waiting for something to happen. The problem with this is that on some platforms the minimum sleep interval might be 1, 10, even 100 msec. Which means the test can take one or two orders of magnitude longer to run on those platforms compared to a platform where sleeps are more granular. So instead of sleeping simply yield execution to another runable thread. This reduces the unit test run time for me from 49 minutes to 20 minutes on OpenBSD in a virtual machine. And from 35 minutes to 16 minutes on Cygwin. Partial fix for #483 Partial fix for #546
- Loading branch information
1 parent
e93ac24
commit 2929137
Showing
6 changed files
with
25 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters