Fix failures in TestPreferences for Windows run
QSettings needs OrganizationName and ApplicationName to be set to work properly under Windows. Signed-off-by: Jeremie Guichard <djebrest@gmail.com>
This commit is contained in:
parent
eae4bd82a5
commit
ea4df67b32
@ -11,6 +11,12 @@ pref->sync(); \
|
|||||||
pref->load(); \
|
pref->load(); \
|
||||||
QCOMPARE(METHOD, VALUE);
|
QCOMPARE(METHOD, VALUE);
|
||||||
|
|
||||||
|
void TestPreferences::initTestCase()
|
||||||
|
{
|
||||||
|
QCoreApplication::setOrganizationName("Subsurface");
|
||||||
|
QCoreApplication::setOrganizationDomain("subsurface.hohndel.org");
|
||||||
|
QCoreApplication::setApplicationName("SubsurfaceTestPreferences");
|
||||||
|
}
|
||||||
|
|
||||||
void TestPreferences::testPreferences()
|
void TestPreferences::testPreferences()
|
||||||
{
|
{
|
||||||
|
|||||||
@ -8,6 +8,7 @@ class TestPreferences : public QObject
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
private slots:
|
private slots:
|
||||||
|
void initTestCase();
|
||||||
void testPreferences();
|
void testPreferences();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user