[rtems commit] smptests/smpscheduler02: Remove invalid assert

Sebastian Huber sebh at rtems.org
Wed Jul 19 11:04:24 UTC 2017


Module:    rtems
Branch:    master
Commit:    96ce1ec743a1fcf27593ee72cf1695d9eb0290de
Changeset: http://git.rtems.org/rtems/commit/?id=96ce1ec743a1fcf27593ee72cf1695d9eb0290de

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Jul 19 13:03:13 2017 +0200

smptests/smpscheduler02: Remove invalid assert

Update #3059.

---

 testsuites/smptests/smpscheduler02/init.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/testsuites/smptests/smpscheduler02/init.c b/testsuites/smptests/smpscheduler02/init.c
index 3975802..45b7d72 100644
--- a/testsuites/smptests/smpscheduler02/init.c
+++ b/testsuites/smptests/smpscheduler02/init.c
@@ -221,11 +221,9 @@ static void test(void)
   cpu_set_t online_cpus;
   uint32_t cpu_count;
 
-  cpu_count = rtems_get_processor_count();
-  rtems_test_assert(cpu_count == 1 || cpu_count == 2);
-
   rtems_test_assert(rtems_get_current_processor() == 0);
 
+  cpu_count = rtems_get_processor_count();
   main_task_id = rtems_task_self();
 
   CPU_ZERO(&first_cpu);




More information about the vc mailing list