summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Krause <[email protected]>2017-09-12 17:10:13 +0000
committerVolker Krause <[email protected]>2017-09-12 17:10:13 +0000
commit7963c248a32c3d7b77957d8204763de9da09a07d (patch)
tree9623a5ae762b47ddad342e7fc2a64c9d63f90c3c
parent5d914a6f2a2714634be2defea0c0cbf3388f0a84 (diff)
Make this test independent of local settings.
-rw-r--r--autotests/testfreebusyganttproxymodel.cpp7
-rw-r--r--autotests/testfreebusyganttproxymodel.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/autotests/testfreebusyganttproxymodel.cpp b/autotests/testfreebusyganttproxymodel.cpp
index d5347bb..63d3b30 100644
--- a/autotests/testfreebusyganttproxymodel.cpp
+++ b/autotests/testfreebusyganttproxymodel.cpp
@@ -29,10 +29,17 @@
#include <KCalCore/Attendee>
#include <QTest>
+#include <QStandardPaths>
QTEST_MAIN(FreeBusyGanttProxyModelTest)
using namespace IncidenceEditorNG;
+void FreeBusyGanttProxyModelTest::initTestCase()
+{
+ qputenv("TZ", "UTC");
+ QStandardPaths::setTestModeEnabled(true);
+}
+
void FreeBusyGanttProxyModelTest::testModelValidity()
{
CalendarSupport::FreeBusyItemModel *fbModel = new CalendarSupport::FreeBusyItemModel();
diff --git a/autotests/testfreebusyganttproxymodel.h b/autotests/testfreebusyganttproxymodel.h
index 94a138f..a86f3d5 100644
--- a/autotests/testfreebusyganttproxymodel.h
+++ b/autotests/testfreebusyganttproxymodel.h
@@ -26,6 +26,7 @@ class FreeBusyGanttProxyModelTest: public QObject
{
Q_OBJECT
private Q_SLOTS:
+ void initTestCase();
void testModelValidity();
};