Changeset 6ec7f21 in rtems
- Timestamp:
- 07/16/18 06:31:05 (5 years ago)
- Branches:
- 5, master
- Children:
- da0cbef2
- Parents:
- 00a19d6
- git-author:
- Sebastian Huber <sebastian.huber@…> (07/16/18 06:31:05)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (07/16/18 06:58:11)
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/posix/src/prwlockunlock.c
r00a19d6 r6ec7f21 36 36 } 37 37 38 the_rwlock->flags = POSIX_RWLOCK_MAGIC;38 the_rwlock->flags = (uintptr_t) the_rwlock ^ POSIX_RWLOCK_MAGIC; 39 39 return true; 40 40 } -
testsuites/psxtests/psx05/init.c
r00a19d6 r6ec7f21 375 375 eno = pthread_mutex_lock( &mutex ); 376 376 rtems_test_assert( eno == 0 ); 377 378 eno = pthread_mutex_unlock( &mutex ); 379 rtems_test_assert( eno == 0 ); 380 381 eno = pthread_mutex_destroy( &mutex ); 382 rtems_test_assert( eno == 0 ); 377 383 } 378 384 -
testsuites/psxtests/psxcond01/init.c
r00a19d6 r6ec7f21 52 52 } 53 53 54 static void test_cond_auto_initialization( void ) 55 { 56 int eno; 57 58 { 59 pthread_cond_t cond = PTHREAD_COND_INITIALIZER; 60 61 eno = pthread_cond_destroy( &cond ); 62 rtems_test_assert( eno == 0 ); 63 64 eno = pthread_cond_destroy( &cond ); 65 rtems_test_assert( eno == EINVAL ); 66 } 67 68 { 69 pthread_cond_t cond = PTHREAD_COND_INITIALIZER; 70 71 eno = pthread_cond_signal( &cond ); 72 rtems_test_assert( eno == 0 ); 73 74 eno = pthread_cond_destroy( &cond ); 75 rtems_test_assert( eno == 0 ); 76 } 77 78 { 79 pthread_cond_t cond = PTHREAD_COND_INITIALIZER; 80 81 eno = pthread_cond_broadcast( &cond ); 82 rtems_test_assert( eno == 0 ); 83 84 eno = pthread_cond_destroy( &cond ); 85 rtems_test_assert( eno == 0 ); 86 } 87 } 88 54 89 void *POSIX_Init( 55 90 void *argument … … 60 95 61 96 TEST_BEGIN(); 97 98 test_cond_auto_initialization(); 62 99 63 100 puts( "Init - pthread_mutex_init - Mutex1 - OK" ); -
testsuites/psxtests/psxrwlock01/test.c
r00a19d6 r6ec7f21 259 259 260 260 eno = pthread_rwlock_rdlock( &rw ); 261 rtems_test_assert( eno == 0 ); 262 263 eno = pthread_rwlock_unlock( &rw ); 264 rtems_test_assert( eno == 0 ); 265 266 eno = pthread_rwlock_destroy( &rw ); 261 267 rtems_test_assert( eno == 0 ); 262 268 }
Note: See TracChangeset
for help on using the changeset viewer.