aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/core_api.c12
1 files changed, 12 insertions, 0 deletions
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 @@
1#include "tests.h"
2
3#include "litmus.h"
4
5
6TESTCASE(set_rt_task_param_invalid_pointer, ALL,
7 "reject invalid rt_task pointers")
8{
9 SYSCALL_FAILS( EINVAL, set_rt_task_param(gettid(), NULL));
10
11 SYSCALL_FAILS( EFAULT, set_rt_task_param(gettid(), (void*) 0x123 ));
12}