diff options
author | Jeremie Guichard <djebrest@gmail.com> | 2017-03-03 13:25:23 +0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-03-04 12:03:33 -0800 |
commit | 16a321d43b654cd756f5e2b54d72bad80e493b69 (patch) | |
tree | 0eb60d99ffc0678b7511d9887f964d7b4a74ef79 /tests | |
parent | 7329629b6ec6e373020907cc0e43dc311d360777 (diff) | |
download | subsurface-16a321d43b654cd756f5e2b54d72bad80e493b69.tar.gz |
Use proper QTest initialization method in TestGitStorage
Method originally called testSetup is more a precondition
to test execution rather than an actual test.
QTest recommends to use initTestCase for that purpose.
Signed-off-by: Jeremie Guichard <djebrest@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testgitstorage.cpp | 2 | ||||
-rw-r--r-- | tests/testgitstorage.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/testgitstorage.cpp b/tests/testgitstorage.cpp index aaa6bd8da..46e77142d 100644 --- a/tests/testgitstorage.cpp +++ b/tests/testgitstorage.cpp @@ -16,7 +16,7 @@ // this is a local helper function in git-access.c extern "C" char *get_local_dir(const char *remote, const char *branch); -void TestGitStorage::testSetup() +void TestGitStorage::initTestCase() { // first, setup the preferences an proxy information copy_prefs(&default_prefs, &prefs); diff --git a/tests/testgitstorage.h b/tests/testgitstorage.h index e71e1f809..579aa33d3 100644 --- a/tests/testgitstorage.h +++ b/tests/testgitstorage.h @@ -7,7 +7,7 @@ class TestGitStorage : public QObject { Q_OBJECT private slots: - void testSetup(); + void initTestCase(); void testGitStorageLocal_data(); void testGitStorageLocal(); void testGitStorageCloud(); |