diff options
author | Jeremie Guichard <djebrest@gmail.com> | 2017-03-03 13:33:25 +0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-03-04 12:03:33 -0800 |
commit | 5caa9b23fe3195c758f9b6f1a9ab5f7bf88ee45c (patch) | |
tree | 0eb92e14fdda8fc9b8f858df3204970b2ce2fde7 /tests/testmerge.h | |
parent | 16a321d43b654cd756f5e2b54d72bad80e493b69 (diff) | |
download | subsurface-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/testmerge.h')
-rw-r--r-- | tests/testmerge.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/testmerge.h b/tests/testmerge.h index 771afc4db..2acb1dace 100644 --- a/tests/testmerge.h +++ b/tests/testmerge.h @@ -7,6 +7,8 @@ class TestMerge : public QObject{ Q_OBJECT private slots: void initTestCase(); + void cleanup(); + void testMergeEmpty(); void testMergeBackwards(); }; |