From 5caa9b23fe3195c758f9b6f1a9ab5f7bf88ee45c Mon Sep 17 00:00:00 2001 From: Jeremie Guichard Date: Fri, 3 Mar 2017 13:33:25 +0700 Subject: 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 --- tests/testgitstorage.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/testgitstorage.h') 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(); -- cgit v1.2.3-70-g09d2