From e7e86ba65fe230c6a750cfc6ba160c59c87bf852 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 25 Mar 2015 09:50:59 +0100 Subject: smpmigration01: Delete timing dependent assert The cycles per runner depends too heavily on the hardware timing making the assert unreliable. Delete runner tasks before we print out the status. --- testsuites/smptests/smpmigration01/init.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/testsuites/smptests/smpmigration01/init.c b/testsuites/smptests/smpmigration01/init.c index 78d671d775..12c0cb058e 100644 --- a/testsuites/smptests/smpmigration01/init.c +++ b/testsuites/smptests/smpmigration01/init.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013 embedded brains GmbH. All rights reserved. + * Copyright (c) 2013-2015 embedded brains GmbH. All rights reserved. * * embedded brains GmbH * Dornierstr. 4 @@ -155,6 +155,11 @@ static void test(void) sc = rtems_task_start(stopper_id, stopper, 0); rtems_test_assert(sc == RTEMS_SUCCESSFUL); + for (runner_index = 0; runner_index < RUNNER_COUNT; ++runner_index) { + sc = rtems_task_delete(ctx->runner_ids[runner_index]); + rtems_test_assert(sc == RTEMS_SUCCESSFUL); + } + total_cycles = 0; for (runner_index = 0; runner_index < RUNNER_COUNT; ++runner_index) { const test_counters *counters = &ctx->counters[runner_index]; @@ -196,8 +201,6 @@ static void test(void) cpu, cycle_deviation ); - - rtems_test_assert(fabs(cycle_deviation) < 0.5); } } -- cgit v1.2.3