mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
tests: initialize our prefs to the default values
Otherwise we end up with nonsensical values which lead to a division by zero, which in return leads to different results, depending on platform. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
63e1516579
commit
72bdd506f0
2 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ void TestMerge::initTestCase()
|
|||
{
|
||||
/* we need to manually tell that the resource exists, because we are using it as library. */
|
||||
Q_INIT_RESOURCE(subsurface);
|
||||
prefs.cloud_base_url = strdup(default_prefs.cloud_base_url);
|
||||
copy_prefs(&default_prefs, &prefs);
|
||||
}
|
||||
|
||||
void TestMerge::cleanup()
|
||||
|
|
|
@ -35,7 +35,7 @@ void TestParse::initTestCase()
|
|||
{
|
||||
/* we need to manually tell that the resource exists, because we are using it as library. */
|
||||
Q_INIT_RESOURCE(subsurface);
|
||||
prefs.cloud_base_url = strdup(default_prefs.cloud_base_url);
|
||||
copy_prefs(&default_prefs, &prefs);
|
||||
}
|
||||
|
||||
void TestParse::init()
|
||||
|
|
Loading…
Reference in a new issue