Skip to content
Commit 8e5cae7f authored by Yuval Peress's avatar Yuval Peress Committed by Anas Nashif
Browse files

ztest: Allow 'before' functions to run in privilaged mode



When writing a test suite, it's more common to want the 'before'
hook to run in privilaged mode, even when the test is run in userspace.
Reconfigure ztest to first run the test thread callback in privilaged
mode and only enter userspace after the test rule and suite's 'before'
functions ran.

Signed-off-by: default avatarYuval Peress <peress@google.com>
parent e484ab2f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment