aboutsummaryrefslogtreecommitdiffstats
path: root/tests/testprofile.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2021-04-16 06:47:51 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-04-19 12:51:01 -0700
commitfe074ccad153791b32c2f62af530091cb025cdee (patch)
treec40ecb5394edba602cfac732732dd14de7e0b3a4 /tests/testprofile.h
parentcfe20ee5f4f77a3a42ba301bdd69f5585c46184c (diff)
downloadsubsurface-fe074ccad153791b32c2f62af530091cb025cdee.tar.gz
cloudstorage: adapt tests
The code assumes that prefs.cloud_base_url is non NULL. Allowing that to be NULL makes no sense during normal operation of the app. Yet, most of the tests don't initialize the prefs at all. Making things worse, if we do correctly initialize the prefs (so as to reasonably approximate the behavior when running the app), things break because some of the reference outputs assume that the prefs are unset. This deserves fixing. For now, simply make sure that cloud_base_url is set for all the tests that try to parse files. Additionally, the semantics how cloud_base_url is saved to disk have changed, so adjust the test for those prefs accordingly. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'tests/testprofile.h')
-rw-r--r--tests/testprofile.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/testprofile.h b/tests/testprofile.h
index 18311dc77..2ae832190 100644
--- a/tests/testprofile.h
+++ b/tests/testprofile.h
@@ -8,6 +8,7 @@
class TestProfile : public QObject {
Q_OBJECT
private slots:
+ void init();
void testProfileExport();
void testProfileExportVPMB();
};