Lines Matching +full:test +full:- +full:hog
4 * SPDX-License-Identifier: Apache-2.0
10 #include <zephyr/linker/linker-defs.h>
29 /* Just past the zephyr image mapping should be a non-present page */
41 printk("Caught system error -- reason %d\n", reason); in k_sys_fatal_error_handler()
42 printk("Unexpected fault during test\n"); in k_sys_fatal_error_handler()
59 err_copy = -1; in z_vrfy_string_nlen()
73 return -2; in z_impl_string_alloc_copy()
84 return -1; in z_vrfy_string_alloc_copy()
145 * arguments (this one happens to need 9), and to test generation of
196 * @brief Test to demonstrate usage of k_usermode_string_nlen()
198 * @details The test will be called from user mode and kernel
212 zassert_equal(err, -1, in ZTEST_USER()
231 * In addition to the above, skip the scenario for Non-Secure Cortex-M in ZTEST_USER()
232 * builds; Zephyr running in Non-Secure mode will generate SecureFault in ZTEST_USER()
242 zassert_equal(err, -1, "nonsense string address did not fault"); in ZTEST_USER()
247 * @brief Test to verify syscall for string alloc copy
258 zassert_equal(ret, -2, "got %d", ret); in ZTEST_USER()
262 zassert_equal(ret, -1, "got %d", ret); in ZTEST_USER()
265 zassert_equal(ret, -1, "got %d", ret); in ZTEST_USER()
272 * @brief Test sys_call for string copy
296 * @brief Test to demonstrate system call for copy
354 /* Run a bunch of our test syscalls in scenarios that are in syscall_torture()
387 printk("Running syscall torture test with %d threads on %d cpu(s)\n", in ZTEST()
397 /* Let the torture threads hog the system for several seconds before in ZTEST()
445 /* Remainder of the test in user mode */ in ZTEST()