This commit adds the tests for the newlib retargetable locking interface, as well as the tests for the internal lock functions that are supposed to internally invoke the retargetable locking interface. All of these tests must pass when the toolchain newlib is compiled with the `retargetable-locking` and `multithread` options, which are required to ensure that the newlib is thread-safe, enabled. If the toolchain newlib is compiled with either of these options disabled, this test will fail. This commit also adds the userspace testcases to ensure that the newlib is thread-safe in the user mode. Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
12 lines
250 B
Plaintext
12 lines
250 B
Plaintext
# Copyright (c) 2021 Stephanos Ioannidis <root@stephanos.io>
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config NEWLIB_THREAD_SAFETY_TEST_LOCKS
|
|
bool "Test: Locks"
|
|
default y
|
|
|
|
config NEWLIB_THREAD_SAFETY_TEST_STRESS
|
|
bool "Test: Stress"
|
|
|
|
source "Kconfig"
|