summaryrefslogtreecommitdiff
path: root/tests/test-Tasks.cc
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2011-10-17 21:17:31 -0700
committerPixel <pixel@nobis-crew.org>2011-10-17 21:17:31 -0700
commitbc4f9afa3e19fc7f7b9fd642bf6bf170b319f5f7 (patch)
treeae5e530743accc91fa87cc351b2108fbc47aaebb /tests/test-Tasks.cc
parent1e0ba312edbe0feea88737380ef1a71782779437 (diff)
Removing the 'non-preemptible' madness before it could even be used.
Diffstat (limited to 'tests/test-Tasks.cc')
-rw-r--r--tests/test-Tasks.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/test-Tasks.cc b/tests/test-Tasks.cc
index bdafa8d..9f07dda 100644
--- a/tests/test-Tasks.cc
+++ b/tests/test-Tasks.cc
@@ -47,11 +47,8 @@ void MainTask::Do() {
timeout.set(0.1);
timeout.reset();
- setPreemptible(false);
- yieldingFunction();
- Assert(!timeout.gotSignal());
waitFor(&timeout);
- yield();
+ yieldingFunction();
Assert(timeout.gotSignal());
Printer::log(M_STATUS, "Test::Tasks passed.");