From a9cc6a84c50c7745155192ca8fda2ba36e43dd69 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 1 Jun 2016 09:50:44 +0200 Subject: smptests/smpatomic01: New test cases Demonstrate that a read-modify-write atomic operation may be necessary on some archtitectures to observe the latest value written. --- cpukit/libmisc/testsupport/testparallel.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cpukit/libmisc') 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); -- cgit v1.2.3