Skip to content

Commit

Permalink
test: posix: headers: check for pthread_rwlockattr_getpshared()
Browse files Browse the repository at this point in the history
Check for the existence of
pthread_rwlockattr_getpshared()
and
pthread_rwlockattr_setpshared().

Signed-off-by: Gaetan Perrot <gaetanperrotpro@gmail.com>
  • Loading branch information
moonlight83340 authored and jhedberg committed Apr 3, 2024
1 parent 9c0b818 commit aad1f6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/posix/headers/src/pthread_h.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit aad1f6e

Please sign in to comment.