diff options
author | Yi He <yi.he@linaro.org> | 2018-03-12 16:38:37 +0800 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2018-03-14 10:54:21 +0300 |
commit | 41fd242a0685e79cb6f1b1e1826e6734bea2f359 (patch) | |
tree | 5400ce7f87fc83a75faec588e72163820d517e83 | |
parent | 35a90a547466db90c00d6375d8d9a3573e84e99b (diff) |
validation: scheduler: fix test_wait_time failure
Resolve Bug https://bugs.linaro.org/show_bug.cgi?id=3675, the
elapsed time measurement could be enlarged unpredictably by inner
printf calls and exceed the upper limit of tolerance.
Signed-off-by: Yi He <yi.he@linaro.org>
Reviewed-by: Ola Liljedahl <ola.liljedahl@arm.com>
Reviewed-by: Brian Brooks <brian.brooks@arm.com>
Reviewed-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
-rw-r--r-- | test/validation/api/scheduler/scheduler.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/validation/api/scheduler/scheduler.c b/test/validation/api/scheduler/scheduler.c index d5783b4d2..f1b61dfd3 100644 --- a/test/validation/api/scheduler/scheduler.c +++ b/test/validation/api/scheduler/scheduler.c @@ -175,10 +175,8 @@ static void scheduler_test_wait_time(void) /* check time correctness */ start_time = odp_time_local(); - for (i = 1; i < 6; i++) { + for (i = 1; i < 6; i++) odp_schedule(&queue, wait_time); - printf("%d..", i); - } end_time = odp_time_local(); diff = odp_time_diff(end_time, start_time); |