summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-03-25 09:50:59 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-03-25 11:46:04 +0100
commite7e86ba65fe230c6a750cfc6ba160c59c87bf852 (patch)
treef59f51ffb40cca4f7152c72608763c5f0c69d417
parent4f10ed61d0e3c804c0ab6cde193d1f1ff4661daa (diff)
downloadrtems-e7e86ba65fe230c6a750cfc6ba160c59c87bf852.tar.bz2
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.
-rw-r--r--testsuites/smptests/smpmigration01/init.c9
1 files 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);
}
}