summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxrwlock01
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-07-16 08:31:05 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-07-16 08:58:11 +0200
commit6ec7f2102e6517c60a70acd1421cbc4106495513 (patch)
tree41ceedbff1e80abf239f32de5fd3d9e85bc9163c /testsuites/psxtests/psxrwlock01
parentjffs2: Add README (diff)
downloadrtems-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.c6
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 );
}
{