diff options
author | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2017-01-13 20:53:50 +0100 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2017-01-13 20:53:50 +0100 |
commit | 6a8f0d0a9aab073e2e79a06322e4f83e69409d05 (patch) | |
tree | 5c17bdb2879871b7b17ca0308e465405730f2590 /src/ipcpd | |
parent | 4e3c360377bc9b792c2fac83e9402d7531f79bbe (diff) | |
parent | 81c9112a305d484627e666624434dc9f9cce17e7 (diff) | |
download | ouroboros-6a8f0d0a9aab073e2e79a06322e4f83e69409d05.tar.gz ouroboros-6a8f0d0a9aab073e2e79a06322e4f83e69409d05.zip |
Merged in dstaesse/ouroboros/be-sha3-test (pull request #346)
lib: Add test for SHA-3 function
Diffstat (limited to 'src/ipcpd')
-rw-r--r-- | src/ipcpd/tests/timerwheel_test.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ipcpd/tests/timerwheel_test.c b/src/ipcpd/tests/timerwheel_test.c index 486358f9..1ace1371 100644 --- a/src/ipcpd/tests/timerwheel_test.c +++ b/src/ipcpd/tests/timerwheel_test.c @@ -25,7 +25,7 @@ #include <time.h> #include <stdlib.h> -#define MAX_ELEMENTS 500 +#define MAX_ELEMENTS 100 #define MAX_RESOLUTION 10 /* ms */ #define MAX_ADDITIONS 1000 @@ -87,6 +87,10 @@ int timerwheel_test(int argc, char ** argv) nanosleep(&wait, NULL); + /* On some systems and VMs, the scheduler may be too slow. */ + if (total != check_total) + nanosleep(&wait, NULL); + timerwheel_destroy(tw); if (total != check_total) { |