Changeset ae54141 in rtems


Ignore:
Timestamp:
Oct 30, 2006, 10:21:44 PM (14 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Children:
4b77b83
Parents:
f5c9b89
Message:

2006-10-30 Joel Sherrill <joel@…>

PR 841/rtems

  • psxsem01/init.c: Make sem_timedwait more conformant to Open Group specification.
Location:
testsuites/psxtests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/ChangeLog

    rf5c9b89 rae54141  
     12006-10-30      Joel Sherrill <joel@OARcorp.com>
     2
     3        PR 841/rtems
     4        * psxsem01/init.c: Make sem_timedwait more conformant to Open Group
     5        specification.
     6
    172006-10-19      Ralf Corsépius <ralf.corsepius@rtems.org>
    28
  • testsuites/psxtests/psxsem01/init.c

    rf5c9b89 rae54141  
    9090  fatal_posix_service_status( errno, EINVAL, "sem_trywait errno EINVAL");
    9191
     92  status = sem_post(&sems[2]);
     93  fatal_posix_service_status( status, 0, "sem_post semaphore 2");
     94
    9295  puts( "Init: sem_timedwait - SUCCESSFUL" );
    9396  waittime.tv_sec = 0;
     
    97100
    98101  puts( "Init: sem_timedwait - UNSUCCESSFUL (ETIMEDOUT)" );
    99   status = sem_timedwait(&sems[1], &waittime);
     102  status = sem_timedwait(&sems[2], &waittime);
    100103  fatal_posix_service_status( status, -1, "sem_timedwait error return status");
    101104  fatal_posix_service_status( errno, ETIMEDOUT, "sem_timedwait errno ETIMEDOUT");
    102105
    103106  puts( "Init: sem_timedwait - UNSUCCESSFUL (EINVAL)" );
    104   status = sem_timedwait(&sem2, &waittime);
     107  waittime.tv_sec = 0;
     108  waittime.tv_nsec = 0x40000000;
     109  status = sem_timedwait(&sems[2], &waittime);
    105110  fatal_posix_service_status( status, -1, "sem_timedwait error return status");
    106111  fatal_posix_service_status( errno, EINVAL, "sem_init errno EINVAL");
Note: See TracChangeset for help on using the changeset viewer.