summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2011-10-17 21:04:34 -0700
committerPixel <pixel@nobis-crew.org>2011-10-17 21:04:34 -0700
commit1e0ba312edbe0feea88737380ef1a71782779437 (patch)
treecd1225ab42ae1f66b070c19660e47a21e7fbc1bc /tests
parent10d0f503fb68946c265bad18dd755fdc816075c1 (diff)
Redefined how the IO class works. The ref counting should now work properly.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-Handles.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-Handles.cc b/tests/test-Handles.cc
index dffdc9a..c500394 100644
--- a/tests/test-Handles.cc
+++ b/tests/test-Handles.cc
@@ -20,13 +20,13 @@ void MainTask::Do() {
bool failed = false;
try {
- IO i(new Input("SomeInexistantFile.txt"));
+ IO<Handle> i(new Input("SomeInexistantFile.txt"));
}
catch (ENoEnt e) {
failed = true;
}
Assert(failed);
- IO i(new Input("tests/rtest.txt"));
+ IO<Handle> i(new Input("tests/rtest.txt"));
Printer::log(M_STATUS, "Opened file %s:", i->getName());
Printer::log(M_STATUS, " - size = %lli", i->getSize());