Changeset c03aeaf in rtems


Ignore:
Timestamp:
08/09/96 19:50:26 (27 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
13adea0
Parents:
76117f2b
Message:

added test case for pthread_mutexattr_init being passed a null pointer.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/tests/psxtests/psx05/init.c

    r76117f2b rc03aeaf  
    9797  /* basic checkout of mutex attributes */
    9898
     99  puts( "Init: pthread_mutexattr_init - EINVAL (NULL attr)" );
     100  status = pthread_mutexattr_init( NULL );
     101  assert( status == EINVAL );
     102
    99103  puts( "Init: pthread_mutexattr_init - SUCCESSFUL" );
    100104  status = pthread_mutexattr_init( &attr );
  • testsuites/psxtests/psx05/init.c

    r76117f2b rc03aeaf  
    9797  /* basic checkout of mutex attributes */
    9898
     99  puts( "Init: pthread_mutexattr_init - EINVAL (NULL attr)" );
     100  status = pthread_mutexattr_init( NULL );
     101  assert( status == EINVAL );
     102
    99103  puts( "Init: pthread_mutexattr_init - SUCCESSFUL" );
    100104  status = pthread_mutexattr_init( &attr );
Note: See TracChangeset for help on using the changeset viewer.