Changeset 74c15fe6 in rtems
- Timestamp:
- 12/10/13 23:56:22 (10 years ago)
- Branches:
- 4.11, 5, master
- Children:
- 0b599421
- Parents:
- 0f01de2b
- Location:
- testsuites/psxtests/psxcond01
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
testsuites/psxtests/psxcond01/init.c
r0f01de2b r74c15fe6 1 1 /* 2 * COPYRIGHT (c) 1989-201 2.2 * COPYRIGHT (c) 1989-2013. 3 3 * On-Line Applications Research Corporation (OAR). 4 4 * … … 28 28 ) 29 29 { 30 int sc; 31 32 puts( "BlockingThread - pthread_cond_wait with mutex not locked - EPERM" ); 33 sc = pthread_cond_wait( &Condition, &Mutex1 ); 34 fatal_posix_service_status( sc, EPERM, "mutex1 not locked" ); 35 36 sc = pthread_mutex_lock( &Mutex1 ); 37 fatal_posix_service_status( sc, 0, "mutex1 lock" ); 38 30 39 puts( "BlockingThread - pthread_cond_wait on Mutex1 - OK" ); 31 (void)pthread_cond_wait( &Condition, &Mutex1 );40 sc = pthread_cond_wait( &Condition, &Mutex1 ); 32 41 33 puts( "ERROR - BlockingThread returned from pthread_cond_wait!" ); 42 printf( 43 "ERROR - BlockingThread returned from pthread_cond_wait! (rc=%d/%s)\n", 44 sc, 45 strerror(sc) 46 ); 34 47 rtems_test_exit( 0 ); 35 48 -
testsuites/psxtests/psxcond01/psxcond01.scn
r0f01de2b r74c15fe6 2 2 Init - pthread_mutex_init - Mutex1 - OK 3 3 Init - pthread_mutex_init - Mutex2 - OK 4 BlockingThread - pthread_cond_wait with mutex not locked - EPERM 4 5 Init - pthread_cond_init - Condition - OK 5 6 Init - pthread_create - OK
Note: See TracChangeset
for help on using the changeset viewer.