test: posix: headers: check for pthread_rwlockattr_getpshared()

Check for the existence of
pthread_rwlockattr_getpshared()
and
pthread_rwlockattr_setpshared().

Signed-off-by: Gaetan Perrot <gaetanperrotpro@gmail.com>
This commit is contained in:
Gaetan Perrot 2024-04-01 16:21:08 +09:00 committed by Johan Hedberg
commit aad1f6e47b

View file

@ -143,9 +143,9 @@ ZTEST(posix_headers, test_pthread_h)
zassert_not_null(pthread_rwlock_unlock);
zassert_not_null(pthread_rwlock_wrlock);
zassert_not_null(pthread_rwlockattr_destroy);
/* zassert_not_null(pthread_rwlockattr_getpshared); */ /* not implemented */
zassert_not_null(pthread_rwlockattr_getpshared);
zassert_not_null(pthread_rwlockattr_init);
/* zassert_not_null(pthread_rwlockattr_setpshared); */ /* not implemented */
zassert_not_null(pthread_rwlockattr_setpshared);
zassert_not_null(pthread_self);
zassert_not_null(pthread_setcancelstate);
zassert_not_null(pthread_setcanceltype);