summaryrefslogtreecommitdiffstats
path: root/tests/testgitstorage.h
diff options
context:
space:
mode:
authorGravatar Jeremie Guichard <djebrest@gmail.com>2017-03-03 13:33:25 +0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-03-04 12:03:33 -0800
commit5caa9b23fe3195c758f9b6f1a9ab5f7bf88ee45c (patch)
tree0eb92e14fdda8fc9b8f858df3204970b2ce2fde7 /tests/testgitstorage.h
parent16a321d43b654cd756f5e2b54d72bad80e493b69 (diff)
downloadsubsurface-5caa9b23fe3195c758f9b6f1a9ab5f7bf88ee45c.tar.gz
Use QTest cleanup method for proper test shutdown
In case of QCOMPARE failure, code following the comparison is not executed, this results in application state not being properly resorted and often gives several test failures, when only one test really fails. Using QTest cleanup method allows restoring proper state, before next test is executed. Signed-off-by: Jeremie Guichard <djebrest@gmail.com>
Diffstat (limited to 'tests/testgitstorage.h')
-rw-r--r--tests/testgitstorage.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/testgitstorage.h b/tests/testgitstorage.h
index 579aa33d3..d84a8e544 100644
--- a/tests/testgitstorage.h
+++ b/tests/testgitstorage.h
@@ -8,6 +8,8 @@ class TestGitStorage : public QObject
Q_OBJECT
private slots:
void initTestCase();
+ void cleanup();
+
void testGitStorageLocal_data();
void testGitStorageLocal();
void testGitStorageCloud();