aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBjoern Brandenburg <bbb@mpi-sws.org>2012-08-14 14:32:15 -0400
committerBjoern Brandenburg <bbb@mpi-sws.org>2012-08-14 14:46:16 -0400
commit3445e102f16ef5ef0ae0a1c78c16a98ce3d2e5b0 (patch)
treeb2503d29e233e5f6a0ae67a8f8008cbee23333d1 /include
parent2312a91bde3baeb226ce78c444b18eaa7f80cf34 (diff)
Add testcase for preemptions on wakeup under P-EDF and P-FP
Resuming higher-priority tasks should of course preempt lower-priority tasks. This test case infers if higher-priority tasks are unreasonably delayed.
Diffstat (limited to 'include')
-rw-r--r--include/tests.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/tests.h b/include/tests.h
index 79e1575..ed2b409 100644
--- a/include/tests.h
+++ b/include/tests.h
@@ -50,4 +50,6 @@ struct testsuite {
50 50
51#define TESTCASE(function, plugins, description) void test_ ## function (void) 51#define TESTCASE(function, plugins, description) void test_ ## function (void)
52 52
53#define FORK_TASK(code) ({int __pid = fork(); if (__pid == 0) {code; exit(0);}; __pid;})
54
53#endif 55#endif