diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-06-01 09:50:44 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-06-01 09:53:43 +0200 |
commit | a9cc6a84c50c7745155192ca8fda2ba36e43dd69 (patch) | |
tree | ff464e2f53f67c8b1a14703a2cd0c9d7fb7aea72 /cpukit/libmisc | |
parent | arm/raspberrypi: add fbcons support for rpi bsp (diff) | |
download | rtems-a9cc6a84c50c7745155192ca8fda2ba36e43dd69.tar.bz2 |
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.
Diffstat (limited to 'cpukit/libmisc')
-rw-r--r-- | cpukit/libmisc/testsupport/testparallel.c | 4 |
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); |