Skip to content

Commit 41b7c17

Browse files
committed
tests: posix: pthread: check that pthread_atfork() exists
Add a simple existence check that pthread_atfork() has some kind of implementation. The function is mandatory by all conforming POSIX systems. Signed-off-by: Christopher Friedt <[email protected]>
1 parent 1d501a7 commit 41b7c17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/posix/headers/src/pthread_h.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ ZTEST(posix_headers, test_pthread_h)
6060
/* pthread_rwlock_t lock = PTHREAD_RWLOCK_INITIALIZER; */ /* not implemented */
6161

6262
if (IS_ENABLED(CONFIG_POSIX_API)) {
63-
/* zassert_not_null(pthread_atfork); */ /* not implemented */
63+
zassert_not_null(pthread_atfork);
6464
zassert_not_null(pthread_attr_destroy);
6565
zassert_not_null(pthread_attr_getdetachstate);
6666
/* zassert_not_null(pthread_attr_getguardsize); */ /* not implemented */

0 commit comments

Comments
 (0)