diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-07-16 08:31:05 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-07-16 08:58:11 +0200 |
commit | 6ec7f2102e6517c60a70acd1421cbc4106495513 (patch) | |
tree | 41ceedbff1e80abf239f32de5fd3d9e85bc9163c /testsuites/psxtests/psxrwlock01 | |
parent | jffs2: Add README (diff) | |
download | rtems-6ec7f2102e6517c60a70acd1421cbc4106495513.tar.bz2 |
posix: Fix rwlock auto initialization
Add more test cases.
Diffstat (limited to 'testsuites/psxtests/psxrwlock01')
-rw-r--r-- | testsuites/psxtests/psxrwlock01/test.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuites/psxtests/psxrwlock01/test.c b/testsuites/psxtests/psxrwlock01/test.c index 341c5d8f28..3599d1f64e 100644 --- a/testsuites/psxtests/psxrwlock01/test.c +++ b/testsuites/psxtests/psxrwlock01/test.c @@ -259,6 +259,12 @@ static void test_rwlock_auto_initialization( void ) eno = pthread_rwlock_rdlock( &rw ); rtems_test_assert( eno == 0 ); + + eno = pthread_rwlock_unlock( &rw ); + rtems_test_assert( eno == 0 ); + + eno = pthread_rwlock_destroy( &rw ); + rtems_test_assert( eno == 0 ); } { |