Changeset 0b599421 in rtems


Ignore:
Timestamp:
12/11/13 01:48:28 (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 5, master
Children:
98e5c95
Parents:
74c15fe6
Message:

psxsignal06: Fix bug where mutex not locked and add EPERM error check

This test formerly had a bug in that it attempted to wait on a
condition variable with a Mutex that was not locked. This is
undefined by POSIX. But a recent change to match GNU/Linux behavior
resulted in finding a bug in the test.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/psxsignal06/init.c

    r74c15fe6 r0b599421  
    11/*
    2  *  COPYRIGHT (c) 1989-2012.
     2 *  COPYRIGHT (c) 1989-2013.
    33 *  On-Line Applications Research Corporation (OAR).
    44 *
     
    5656  act.sa_flags   = 0;
    5757  sigaction( SIGUSR1, &act, NULL );
     58
     59  status = pthread_mutex_lock( &MutexId );
     60  rtems_test_assert(  !status );
    5861
    5962  /* interrupting condition wait returns 0 */
Note: See TracChangeset for help on using the changeset viewer.