From 6ec7f2102e6517c60a70acd1421cbc4106495513 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 16 Jul 2018 08:31:05 +0200 Subject: posix: Fix rwlock auto initialization Add more test cases. --- testsuites/psxtests/psx05/init.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'testsuites/psxtests/psx05/init.c') diff --git a/testsuites/psxtests/psx05/init.c b/testsuites/psxtests/psx05/init.c index 70e8d4a67d..2459166321 100644 --- a/testsuites/psxtests/psx05/init.c +++ b/testsuites/psxtests/psx05/init.c @@ -374,6 +374,12 @@ static void test_mutex_auto_initialization( void ) eno = pthread_mutex_lock( &mutex ); rtems_test_assert( eno == 0 ); + + eno = pthread_mutex_unlock( &mutex ); + rtems_test_assert( eno == 0 ); + + eno = pthread_mutex_destroy( &mutex ); + rtems_test_assert( eno == 0 ); } { -- cgit v1.2.3