summaryrefslogtreecommitdiffstats
path: root/c/src/tests/sptests/sp09/screen03.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/tests/sptests/sp09/screen03.c')
-rw-r--r--c/src/tests/sptests/sp09/screen03.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/c/src/tests/sptests/sp09/screen03.c b/c/src/tests/sptests/sp09/screen03.c
index 713375cb52..fb99c5c16f 100644
--- a/c/src/tests/sptests/sp09/screen03.c
+++ b/c/src/tests/sptests/sp09/screen03.c
@@ -200,6 +200,12 @@ void Screen3()
);
puts( "TA1 - rtems_task_create - 11 - RTEMS_TOO_MANY" );
+ /*
+ * The check for an object being global is only made if
+ * multiprocessing is enabled.
+ */
+
+#if defined(RTEMS_MULTIPROCESSING)
status = rtems_task_create(
task_name,
4,
@@ -213,5 +219,6 @@ void Screen3()
RTEMS_MP_NOT_CONFIGURED,
"rtems_task_create of global task in a single cpu system"
);
+#endif
puts( "TA1 - rtems_task_create - RTEMS_MP_NOT_CONFIGURED" );
}