From c28a69fba8873b7551f1031e32f480c4f9a522ab Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Mon, 29 Jun 2015 10:36:59 +0200 Subject: [PATCH] Mixer test: Ensure its not susceptible to timing jitter of the test harness --- src/systemcmds/tests/test_mixer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/systemcmds/tests/test_mixer.cpp b/src/systemcmds/tests/test_mixer.cpp index e9500d2d16..d0eb1eb1ff 100644 --- a/src/systemcmds/tests/test_mixer.cpp +++ b/src/systemcmds/tests/test_mixer.cpp @@ -200,7 +200,7 @@ int test_mixer(int argc, char *argv[]) hrt_abstime starttime = hrt_absolute_time(); unsigned sleepcount = 0; - while (hrt_elapsed_time(&starttime) < INIT_TIME_US + RAMP_TIME_US) { + while (hrt_elapsed_time(&starttime) < INIT_TIME_US + RAMP_TIME_US + 2 * sleep_quantum_us) { /* mix */ mixed = mixer_group.mix(&outputs[0], output_max, NULL);