Commit 5c78c66f authored by Christopher Friedt's avatar Christopher Friedt Committed by Fabio Baltieri
Browse files

tests: posix: headers: check for pthread get / set guardsize

Add checks to ensure that pthread_getguardsize() and
pthread_setguardsize() are callable.

Signed-off-by: default avatarChristopher Friedt <cfriedt@meta.com>
parent 5e245bd4
Loading
Loading
Loading
Loading
+2 −2
Changes for tests/posix/headers/src/pthread_h.c: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -64,7 +64,7 @@ ZTEST(posix_headers, test_pthread_h)
		zassert_not_null(pthread_atfork);
		zassert_not_null(pthread_attr_destroy);
		zassert_not_null(pthread_attr_getdetachstate);
		/* zassert_not_null(pthread_attr_getguardsize); */ /* not implemented */
		zassert_not_null(pthread_attr_getguardsize);
		/* zassert_not_null(pthread_attr_getinheritsched); */ /* not implemented */
		zassert_not_null(pthread_attr_getschedparam);
		zassert_not_null(pthread_attr_getschedpolicy);
@@ -73,7 +73,7 @@ ZTEST(posix_headers, test_pthread_h)
		zassert_not_null(pthread_attr_getstacksize);
		zassert_not_null(pthread_attr_init);
		zassert_not_null(pthread_attr_setdetachstate);
		/* zassert_not_null(pthread_attr_setguardsize); */ /* not implemented */
		zassert_not_null(pthread_attr_setguardsize);
		/* zassert_not_null(pthread_attr_setinheritsched); */ /* not implemented */
		zassert_not_null(pthread_attr_setschedparam);
		zassert_not_null(pthread_attr_setschedpolicy);