From 0ce49462d1b6becaa1a41adcd3e2b46c70c3e063 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 19 Nov 2016 11:38:49 -0600 Subject: [PATCH] apps/examples/ostest: Skip the task_restart() test on SMP systems. This is not fully implemented. --- examples/ostest/Makefile | 6 +++++- examples/ostest/ostest_main.c | 2 ++ examples/ostest/restart.c | 4 ++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/examples/ostest/Makefile b/examples/ostest/Makefile index f5f5b1a43..3b4e7890c 100644 --- a/examples/ostest/Makefile +++ b/examples/ostest/Makefile @@ -44,9 +44,13 @@ STACKSIZE = 2048 # NuttX OS Test ASRCS = -CSRCS = dev_null.c restart.c +CSRCS = dev_null.c MAINSRC = ostest_main.c +ifneq ($(CONFIG_SMP),y) +CSRCS += restart.c +endif + ifeq ($(CONFIG_ARCH_FPU),y) CSRCS += fpu.c endif diff --git a/examples/ostest/ostest_main.c b/examples/ostest/ostest_main.c index 081364043..c01e47394 100644 --- a/examples/ostest/ostest_main.c +++ b/examples/ostest/ostest_main.c @@ -355,11 +355,13 @@ static int user_main(int argc, char *argv[]) check_test_memory_usage(); #endif +#ifndef CONFIG_SMP /* Not yet supported for the SMP case */ /* Checkout task_restart() */ printf("\nuser_main: task_restart test\n"); restart_test(); check_test_memory_usage(); +#endif #ifdef CONFIG_SCHED_WAITPID /* Check waitpid() and friends */ diff --git a/examples/ostest/restart.c b/examples/ostest/restart.c index 3fd8291a3..ec9582937 100644 --- a/examples/ostest/restart.c +++ b/examples/ostest/restart.c @@ -49,6 +49,8 @@ #include "ostest.h" +#ifndef CONFIG_SMP /* Not yet supported for the SMP case */ + /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ @@ -195,3 +197,5 @@ void restart_test(void) printf("restart_main: Exiting\n"); } + +#endif /* CONFIG_SMP */