summaryrefslogtreecommitdiff
path: root/test/test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/test.cpp')
-rw-r--r--test/test.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/test.cpp b/test/test.cpp
index 4e7779e7..1bb6ebcb 100644
--- a/test/test.cpp
+++ b/test/test.cpp
@@ -13,7 +13,6 @@ Test::Test()
Test::~Test()
{
- cleanup();
}
int Test::execute()
@@ -24,5 +23,9 @@ int Test::execute()
if (ret < 0)
return ret;
- return run();
+ ret = run();
+
+ cleanup();
+
+ return ret;
}