Skip to content
Permalink
Browse files

tests: device: cover device_get_binding()

We had no coverage for invoking this from a system call.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
  • Loading branch information...
andrewboie authored and nashif committed Jun 25, 2019
1 parent d0490fe commit ffd182a04b3c8a5947f061aadea9ba7978f53685
Showing with 4 additions and 3 deletions.
  1. +1 −0 tests/kernel/device/prj.conf
  2. +2 −2 tests/kernel/device/src/main.c
  3. +1 −1 tests/kernel/device/testcase.yaml
@@ -1 +1,2 @@
CONFIG_ZTEST=y
CONFIG_TEST_USERSPACE=y
@@ -176,7 +176,7 @@ void test_main(void)
ztest_unit_test(test_dummy_device_pm),
ztest_unit_test(build_suspend_device_list),
ztest_unit_test(test_dummy_device),
ztest_unit_test(test_bogus_dynamic_name),
ztest_unit_test(test_dynamic_name));
ztest_user_unit_test(test_bogus_dynamic_name),
ztest_user_unit_test(test_dynamic_name));
ztest_run_test_suite(device);
}
@@ -1,5 +1,5 @@
common:
tags: device
tags: device userspace
tests:
kernel.device:
tags: device

0 comments on commit ffd182a

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