tests: posix: headers: check pthread_spin_lock() et al exist

The simple header test was not updated to verify that the
following functions were implemented even though they were
implemented some time ago.

* pthread_spin_destroy()
* pthread_spin_init()
* pthread_spin_lock()
* pthread_spin_trylock()
* pthread_spin_unlock()

Signed-off-by: Christopher Friedt <cfriedt@meta.com>
This commit is contained in:
Christopher Friedt 2023-11-22 22:02:21 -05:00 committed by Chris Friedt
parent ad5441bbdd
commit 131220cb95

View file

@ -152,10 +152,11 @@ ZTEST(posix_headers, test_pthread_h)
zassert_not_null(pthread_setschedparam);
/* zassert_not_null(pthread_setschedprio); */ /* not implemented */
zassert_not_null(pthread_setspecific);
/* zassert_not_null(pthread_spin_destroy); */ /* not implemented */
/* zassert_not_null(pthread_spin_init); */ /* not implemented */
/* zassert_not_null(pthread_spin_lock); */ /* not implemented */
/* zassert_not_null(pthread_spin_unlock); */ /* not implemented */
zassert_not_null(pthread_spin_destroy);
zassert_not_null(pthread_spin_init);
zassert_not_null(pthread_spin_lock);
zassert_not_null(pthread_spin_trylock);
zassert_not_null(pthread_spin_unlock);
/* zassert_not_null(pthread_testcancel); */ /* not implemented */
}
}