From 57c8805648dab577fa460fbf09f4ce920c59ca19 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 19 Jul 2013 10:12:13 +0200 Subject: smptests: Be successful on one processor --- testsuites/smptests/smp02/init.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'testsuites/smptests/smp02') diff --git a/testsuites/smptests/smp02/init.c b/testsuites/smptests/smp02/init.c index d053b31377..509fed01b8 100644 --- a/testsuites/smptests/smp02/init.c +++ b/testsuites/smptests/smp02/init.c @@ -17,6 +17,12 @@ #include #include +static void success(void) +{ + locked_printf( "*** END OF TEST SMP02 ***\n" ); + rtems_test_exit( 0 ); +} + rtems_task Init( rtems_task_argument argument ) @@ -31,6 +37,10 @@ rtems_task Init( locked_print_initialize(); locked_printf( "\n\n*** SMP02 TEST ***\n" ); + if ( rtems_smp_get_processor_count() == 1 ) { + success(); + } + /* Create/verify synchronisation semaphore */ status = rtems_semaphore_create( rtems_build_name ('S', 'E', 'M', '1'), @@ -95,6 +105,5 @@ rtems_task Init( } } - locked_printf( "*** END OF TEST SMP02 ***\n" ); - rtems_test_exit( 0 ); + success(); } -- cgit v1.2.3