summaryrefslogtreecommitdiffstats
path: root/c/src/tests/sptests/sp09/screen05.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/tests/sptests/sp09/screen05.c')
-rw-r--r--c/src/tests/sptests/sp09/screen05.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/c/src/tests/sptests/sp09/screen05.c b/c/src/tests/sptests/sp09/screen05.c
index c5dfd1a067..646a28ba6d 100644
--- a/c/src/tests/sptests/sp09/screen05.c
+++ b/c/src/tests/sptests/sp09/screen05.c
@@ -116,6 +116,12 @@ void Screen5()
);
puts( "TA1 - rtems_semaphore_create - RTEMS_INVALID_NUMBER" );
+ /*
+ * The check for an object being global is only made if
+ * multiprocessing is enabled.
+ */
+
+#if defined(RTEMS_MULTIPROCESSING)
status = rtems_semaphore_create(
Semaphore_name[ 3 ],
1,
@@ -128,6 +134,7 @@ void Screen5()
RTEMS_MP_NOT_CONFIGURED,
"rtems_semaphore_create of mp not configured"
);
+#endif
puts( "TA1 - rtems_semaphore_create - RTEMS_MP_NOT_CONFIGURED" );
status = rtems_semaphore_delete( 100 );