diff options
Diffstat (limited to 'src/ipcpd/tests')
| -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) { | 
