From ee83336050553a2dbd64c27b8e384139c7ccec9a Mon Sep 17 00:00:00 2001 From: Pixel Date: Wed, 9 Nov 2011 17:14:00 +0100 Subject: Adding 'Output' object --- tests/test-Handles.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests') diff --git a/tests/test-Handles.cc b/tests/test-Handles.cc index c500394..f9fd055 100644 --- a/tests/test-Handles.cc +++ b/tests/test-Handles.cc @@ -1,5 +1,6 @@ #include #include +#include #ifdef _WIN32 void ctime_r(const time_t * t, char * str) { @@ -62,5 +63,12 @@ void MainTask::Do() { Assert(r == (s - 5)); Assert(memcmp(buf1, buf2, s) == 0); + IO o(new Output("tests/out.txt")); + s = o->wtell(); + Assert(s == 0); + s = o->getSize(); + Assert(s == 0); + o->write("foo\n", 4); + Printer::log(M_STATUS, "Test::Handles passed."); } -- cgit v1.2.3