Skip to content

Commit ffd182a

Browse files
Andrew Boienashif
authored andcommitted
tests: device: cover device_get_binding()
We had no coverage for invoking this from a system call. Signed-off-by: Andrew Boie <[email protected]>
1 parent d0490fe commit ffd182a

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

tests/kernel/device/prj.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
CONFIG_ZTEST=y
2+
CONFIG_TEST_USERSPACE=y

tests/kernel/device/src/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ void test_main(void)
176176
ztest_unit_test(test_dummy_device_pm),
177177
ztest_unit_test(build_suspend_device_list),
178178
ztest_unit_test(test_dummy_device),
179-
ztest_unit_test(test_bogus_dynamic_name),
180-
ztest_unit_test(test_dynamic_name));
179+
ztest_user_unit_test(test_bogus_dynamic_name),
180+
ztest_user_unit_test(test_dynamic_name));
181181
ztest_run_test_suite(device);
182182
}

tests/kernel/device/testcase.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
common:
2-
tags: device
2+
tags: device userspace
33
tests:
44
kernel.device:
55
tags: device

0 commit comments

Comments
 (0)