Skip to content

Commit aad1f6e

Browse files
moonlight83340jhedberg
authored andcommitted
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 <[email protected]>
1 parent 9c0b818 commit aad1f6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/posix/headers/src/pthread_h.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,9 @@ ZTEST(posix_headers, test_pthread_h)
143143
zassert_not_null(pthread_rwlock_unlock);
144144
zassert_not_null(pthread_rwlock_wrlock);
145145
zassert_not_null(pthread_rwlockattr_destroy);
146-
/* zassert_not_null(pthread_rwlockattr_getpshared); */ /* not implemented */
146+
zassert_not_null(pthread_rwlockattr_getpshared);
147147
zassert_not_null(pthread_rwlockattr_init);
148-
/* zassert_not_null(pthread_rwlockattr_setpshared); */ /* not implemented */
148+
zassert_not_null(pthread_rwlockattr_setpshared);
149149
zassert_not_null(pthread_self);
150150
zassert_not_null(pthread_setcancelstate);
151151
zassert_not_null(pthread_setcanceltype);

0 commit comments

Comments
 (0)