summaryrefslogtreecommitdiffstats
path: root/tests/testmerge.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testmerge.cpp')
-rw-r--r--tests/testmerge.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/testmerge.cpp b/tests/testmerge.cpp
index 450aba2e9..8c2b3482d 100644
--- a/tests/testmerge.cpp
+++ b/tests/testmerge.cpp
@@ -10,6 +10,11 @@ void TestMerge::initTestCase()
Q_INIT_RESOURCE(subsurface);
}
+void TestMerge::cleanup()
+{
+ clear_dive_file_data();
+}
+
void TestMerge::testMergeEmpty()
{
/*
@@ -31,7 +36,6 @@ void TestMerge::testMergeEmpty()
while(readin.size() && written.size()){
QCOMPARE(written.takeFirst().trimmed(), readin.takeFirst().trimmed());
}
- clear_dive_file_data();
}
void TestMerge::testMergeBackwards()
@@ -55,7 +59,6 @@ void TestMerge::testMergeBackwards()
while(readin.size() && written.size()){
QCOMPARE(written.takeFirst().trimmed(), readin.takeFirst().trimmed());
}
- clear_dive_file_data();
}
QTEST_GUILESS_MAIN(TestMerge)