[PATCH 2/2] smpunsupported01: Add missing error check for rtems_task_mode
Joel Sherrill
joel at rtems.org
Tue Dec 5 16:13:26 UTC 2017
Update test documentation to include more cases.
Updates #3000.
---
testsuites/smptests/smpunsupported01/init.c | 3 +++
testsuites/smptests/smpunsupported01/smpunsupported01.doc | 4 ++++
2 files changed, 7 insertions(+)
diff --git a/testsuites/smptests/smpunsupported01/init.c b/testsuites/smptests/smpunsupported01/init.c
index ef4ea9b..7d240c7 100644
--- a/testsuites/smptests/smpunsupported01/init.c
+++ b/testsuites/smptests/smpunsupported01/init.c
@@ -45,6 +45,9 @@ static void test(void)
mode = RTEMS_INTERRUPT_LEVEL(1);
if (mode != 0) {
+ sc = rtems_task_mode(mode, RTEMS_INTERRUPT_MASK, &mode);
+ rtems_test_assert(sc == RTEMS_NOT_IMPLEMENTED);
+
sc = rtems_task_create(
rtems_build_name('T', 'A', 'S', 'K'),
RTEMS_MINIMUM_PRIORITY,
diff --git a/testsuites/smptests/smpunsupported01/smpunsupported01.doc b/testsuites/smptests/smpunsupported01/smpunsupported01.doc
index 2fbd4fa..71a4fb6 100644
--- a/testsuites/smptests/smpunsupported01/smpunsupported01.doc
+++ b/testsuites/smptests/smpunsupported01/smpunsupported01.doc
@@ -16,3 +16,7 @@ concepts:
on SMP configurations.
- Ensure that rtems_task_create() with RTEMS_NO_PREEMPT returns an error
status on SMP configurations.
+ - Ensure that rtems_task_mode() with RTEMS_INTERRUPT_MASK returns an
+ error status
+ - Ensure that rtems_task_create() with RTEMS_INTERRUPT_MASK returns an
+ error status
--
1.8.3.1
More information about the devel
mailing list