mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
tests: run profile test using default preferences
As noted in a comment introduced in fe074ccad1
, the profile test
should probably best be run using the default preferences. This
wasn't done back then, because the reference data assumes a (bogus)
setting of modO2 of 0.
This commit runs the test using the default preferences and updates
the reference data accordingly.
This is in preparation of changes to the preference system, where
the preference structure initializes itself to the default values.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
31fca0f676
commit
0940ff23b9
3 changed files with 31157 additions and 31161 deletions
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -22,13 +22,9 @@ void TestProfile::init()
|
|||
|
||||
// Set UTF8 text codec as in real applications
|
||||
QTextCodec::setCodecForLocale(QTextCodec::codecForMib(106));
|
||||
// first, setup the preferences
|
||||
|
||||
// normally we should be able to do this - but it makes this test fail because the reference data
|
||||
// assume that the prefs are all 0 / false
|
||||
// copy_prefs(&default_prefs, &prefs);
|
||||
// instead we just set up the cloud_base_url to prevent parse_file() from crashing
|
||||
prefs.cloud_base_url = strdup(default_prefs.cloud_base_url);
|
||||
// first, setup the preferences
|
||||
copy_prefs(&default_prefs, &prefs);
|
||||
|
||||
QCoreApplication::setOrganizationName("Subsurface");
|
||||
QCoreApplication::setOrganizationDomain("subsurface.hohndel.org");
|
||||
|
|
Loading…
Add table
Reference in a new issue