Changeset adc2301 in rtems


Ignore:
Timestamp:
Nov 30, 2013, 10:06:07 PM (6 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
086494d5
Parents:
115e059
Message:

psxtmthread02/init.c: Fix warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtmtests/psxtmthread02/init.c

    r115e059 radc2301  
    1414#include <timesys.h>
    1515#include <pthread.h>
     16#include <sched.h>
    1617#include <rtems/timerdrv.h>
    1718#include "test_support.h"
     
    2930  struct sched_param param;
    3031
    31   pthread_attr_init(&attr);
    32   pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED);
    33   pthread_attr_setschedpolicy(&attr, SCHED_FIFO);
     32  status = pthread_attr_init(&attr);
     33  rtems_test_assert( status == 0 );
     34
     35  status = pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED);
     36  rtems_test_assert( status == 0 );
     37
     38  status = pthread_attr_setschedpolicy(&attr, SCHED_FIFO);
     39  rtems_test_assert( status == 0 );
     40
    3441  param.sched_priority = sched_get_priority_max(SCHED_FIFO) - 1;
    35   pthread_attr_setschedparam(&attr, &param);
     42  status = pthread_attr_setschedparam(&attr, &param);
     43  rtems_test_assert( status == 0 );
    3644
    3745  /* create second thread with max priority and get preempted on creation */
Note: See TracChangeset for help on using the changeset viewer.