Skip to content
Permalink
Browse files

kernel: cover k_usleep() from user mode

No test was exercising the k_usleep() system call, run
the test case as a user thread to fix code coverage.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
  • Loading branch information...
andrewboie committed Jun 30, 2019
1 parent ca3549d commit 0b0294d6821e631e23c0652ac7032d08b28a44c4
Showing with 2 additions and 1 deletion.
  1. +1 −0 tests/kernel/sleep/prj.conf
  2. +1 −1 tests/kernel/sleep/src/main.c
@@ -2,3 +2,4 @@ CONFIG_IRQ_OFFLOAD=y
CONFIG_ZTEST=y
CONFIG_QEMU_TICKLESS_WORKAROUND=y
CONFIG_SMP=n
CONFIG_TEST_USERSPACE=y
@@ -240,6 +240,6 @@ void test_main(void)
{
ztest_test_suite(sleep,
ztest_unit_test(test_sleep),
ztest_unit_test(test_usleep));
ztest_user_unit_test(test_usleep));
ztest_run_test_suite(sleep);
}

0 comments on commit 0b0294d

Please sign in to comment.
You can’t perform that action at this time.