diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test-Tasks.cc | 6 | 
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test-Tasks.cc b/tests/test-Tasks.cc index 87a506e..33bdd72 100644 --- a/tests/test-Tasks.cc +++ b/tests/test-Tasks.cc @@ -45,6 +45,7 @@ class TestStackless : public StacklessTask {      virtual const char * getName() const { return "TestStackless"; }    private:      virtual void Do() { +        ssize_t r;          StacklessBegin();          m_operation = new TestOperation();          StacklessOperation(m_operation->Do()); @@ -52,13 +53,14 @@ class TestStackless : public StacklessTask {          delete m_operation;          m_handle = new Input("tests/rtest.txt");          StacklessOperation(m_handle->open()); -        StacklessOperation(m_handle->read(buf, 10)); +        StacklessOperation(r = m_handle->read(buf, 25)); +        TAssert(r == 10);          StacklessOperation(m_handle->close());          StacklessEnd();      }      TestOperation * m_operation;      IO<Input> m_handle; -    char buf[10]; +    char buf[25];  };  static void yieldingFunction() {  | 
