Changeset 8123cae8 in rtems for testsuites/smptests


Ignore:
Timestamp:
Sep 8, 2016, 1:32:22 PM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
f6142c19
Parents:
6ae309ec
git-author:
Sebastian Huber <sebastian.huber@…> (09/08/16 13:32:22)
git-committer:
Sebastian Huber <sebastian.huber@…> (09/21/16 06:59:33)
Message:

rtems: Add rtems_task_get_priority()

Update #2556.
Update #2784.

File:
1 edited

Legend:

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

    r6ae309ec r8123cae8  
    5757
    5858static test_context test_instance;
     59
     60static void test_task_get_priority_not_defined(test_context *ctx)
     61{
     62  rtems_status_code sc;
     63  rtems_id scheduler_id;
     64  rtems_task_priority priority;
     65
     66  sc = rtems_scheduler_ident(SCHED_B, &scheduler_id);
     67  rtems_test_assert(sc == RTEMS_SUCCESSFUL);
     68
     69  priority = 0;
     70  sc = rtems_task_get_priority(RTEMS_SELF, scheduler_id, &priority);
     71  rtems_test_assert(sc == RTEMS_NOT_DEFINED);
     72  rtems_test_assert(priority == 0);
     73}
    5974
    6075static void start_task(
     
    341356
    342357  test_init(ctx);
     358  test_task_get_priority_not_defined(ctx);
    343359  test_simple_inheritance(ctx);
    344360  test_dequeue_order_one_scheduler_instance(ctx);
Note: See TracChangeset for help on using the changeset viewer.