Skip to content

Commit 61fc061

Browse files
ioannisgjhedberg
authored andcommitted
tests: kernel: userspace: extend bad syscall-ID test-case
Extend the bad syscall-ID test case to cover erroneously supplied larged unsiged syscall-ID values. Signed-off-by: Ioannis Glaropoulos <[email protected]>
1 parent 502b67c commit 61fc061

File tree

1 file changed

+4
-0
lines changed
  • tests/kernel/mem_protect/userspace/src

1 file changed

+4
-0
lines changed

tests/kernel/mem_protect/userspace/src/main.c

+4
Original file line numberDiff line numberDiff line change
@@ -1112,6 +1112,10 @@ void test_bad_syscall(void)
11121112

11131113
arch_syscall_invoke0(INT_MAX);
11141114

1115+
expect_fault = true;
1116+
expected_reason = K_ERR_KERNEL_OOPS;
1117+
1118+
arch_syscall_invoke0(UINT_MAX);
11151119
}
11161120

11171121
static struct k_sem recycle_sem;

0 commit comments

Comments
 (0)