summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test-Tasks.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test-Tasks.cc b/tests/test-Tasks.cc
index 6bbb503..87a506e 100644
--- a/tests/test-Tasks.cc
+++ b/tests/test-Tasks.cc
@@ -2,6 +2,7 @@
#include <Task.h>
#include <TaskMan.h>
#include <StacklessTask.h>
+#include <Input.h>
using namespace Balau;
@@ -49,9 +50,15 @@ class TestStackless : public StacklessTask {
StacklessOperation(m_operation->Do());
TAssert(m_operation->completed());
delete m_operation;
+ m_handle = new Input("tests/rtest.txt");
+ StacklessOperation(m_handle->open());
+ StacklessOperation(m_handle->read(buf, 10));
+ StacklessOperation(m_handle->close());
StacklessEnd();
}
TestOperation * m_operation;
+ IO<Input> m_handle;
+ char buf[10];
};
static void yieldingFunction() {