[rtems commit] smpmigration01: Delete timing dependent assert
Sebastian Huber
sebh at rtems.org
Wed Mar 25 10:47:16 UTC 2015
Module: rtems
Branch: master
Commit: e7e86ba65fe230c6a750cfc6ba160c59c87bf852
Changeset: http://git.rtems.org/rtems/commit/?id=e7e86ba65fe230c6a750cfc6ba160c59c87bf852
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Mar 25 09:50:59 2015 +0100
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 78d671d..12c0cb0 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);
}
}
More information about the vc
mailing list