summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/testsupport/testparallel.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libmisc/testsupport/testparallel.c')
-rw-r--r--cpukit/libmisc/testsupport/testparallel.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpukit/libmisc/testsupport/testparallel.c b/cpukit/libmisc/testsupport/testparallel.c
index dabd5646f2..a2f45730e0 100644
--- a/cpukit/libmisc/testsupport/testparallel.c
+++ b/cpukit/libmisc/testsupport/testparallel.c
@@ -68,7 +68,9 @@ static void run_tests(
if (rtems_test_parallel_is_master_worker(worker_index)) {
rtems_interval duration = (*job->init)(ctx, job->arg, active_worker);
- start_worker_stop_timer(ctx, duration);
+ if (duration > 0) {
+ start_worker_stop_timer(ctx, duration);
+ }
}
_SMP_barrier_Wait(&ctx->barrier, &bs, ctx->worker_count);