From edd84612139b951dc511bfcc15619df0b64e79ab Mon Sep 17 00:00:00 2001 From: "Bjoern B. Brandenburg" Date: Thu, 25 Feb 2010 19:13:38 -0500 Subject: add test case for set_rt_task_param Specifically, make sure invalid pointers are rejected. --- tests/core_api.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/core_api.c (limited to 'tests') diff --git a/tests/core_api.c b/tests/core_api.c new file mode 100644 index 0000000..5e7ff65 --- /dev/null +++ b/tests/core_api.c @@ -0,0 +1,12 @@ +#include "tests.h" + +#include "litmus.h" + + +TESTCASE(set_rt_task_param_invalid_pointer, ALL, + "reject invalid rt_task pointers") +{ + SYSCALL_FAILS( EINVAL, set_rt_task_param(gettid(), NULL)); + + SYSCALL_FAILS( EFAULT, set_rt_task_param(gettid(), (void*) 0x123 )); +} -- cgit v1.2.2