Changeset e9e0f1d4 in rtems


Ignore:
Timestamp:
Dec 5, 2017, 3:56:47 PM (17 months ago)
Author:
Joel Sherrill <joel@…>
Branches:
master
Children:
1737e8f
Parents:
d2711c37
git-author:
Joel Sherrill <joel@…> (12/05/17 15:56:47)
git-committer:
Joel Sherrill <joel@…> (12/06/17 18:48:46)
Message:

smpunsupported01: Add missing error check for rtems_task_mode

Update test documentation to include more cases.

Updates #3000.

Location:
testsuites/smptests/smpunsupported01
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/smptests/smpunsupported01/init.c

    rd2711c37 re9e0f1d4  
    4343  rtems_test_assert(sc == RTEMS_UNSATISFIED);
    4444
     45  mode = RTEMS_INTERRUPT_LEVEL(0);
     46  if (mode == 0) {
     47    sc = rtems_task_mode(mode, RTEMS_INTERRUPT_MASK, &mode);
     48    rtems_test_assert(sc == RTEMS_NOT_IMPLEMENTED);
     49  }
     50
    4551  mode = RTEMS_INTERRUPT_LEVEL(1);
     52  if (mode != 0) {
     53    sc = rtems_task_mode(mode, RTEMS_INTERRUPT_MASK, &mode);
     54    rtems_test_assert(sc == RTEMS_NOT_IMPLEMENTED);
    4655
    47   if (mode != 0) {
    4856    sc = rtems_task_create(
    4957      rtems_build_name('T', 'A', 'S', 'K'),
Note: See TracChangeset for help on using the changeset viewer.