Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
20be8ccf
Commit
20be8ccf
authored
Oct 22, 2022
by
Christoph Cullmann
🍨
Browse files
ensure we use dummy configs everywhere in tests
parent
6349e7e1
Pipeline
#254007
passed with stage
in 9 minutes
Changes
3
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
apps/lib/autotests/location_history_test.cpp
View file @
20be8ccf
...
...
@@ -22,6 +22,9 @@ LocationHistoryTest::LocationHistoryTest(QObject *parent)
m_tempdir
=
new
QTemporaryDir
;
QVERIFY
(
m_tempdir
->
isValid
());
// ensure we use some dummy config
KConfig
::
setMainConfigName
(
m_tempdir
->
path
()
+
QStringLiteral
(
"/testconfigfilerc"
));
// create KWrite variant to avoid plugin loading!
static
QCommandLineParser
parser
;
app
=
new
KateApp
(
parser
,
KateApp
::
ApplicationKWrite
,
m_tempdir
->
path
());
...
...
apps/lib/autotests/session_manager_test.cpp
View file @
20be8ccf
...
...
@@ -21,6 +21,9 @@ KateSessionManagerTest::KateSessionManagerTest()
m_tempdir
=
new
QTemporaryDir
;
QVERIFY
(
m_tempdir
->
isValid
());
// ensure we use some dummy config
KConfig
::
setMainConfigName
(
m_tempdir
->
path
()
+
QStringLiteral
(
"/testconfigfilerc"
));
// create KWrite variant to avoid plugin loading!
static
QCommandLineParser
parser
;
m_app
=
new
KateApp
(
parser
,
KateApp
::
ApplicationKWrite
,
m_tempdir
->
path
());
...
...
apps/lib/autotests/sessions_action_test.cpp
View file @
20be8ccf
...
...
@@ -22,6 +22,9 @@ KateSessionsActionTest::KateSessionsActionTest()
m_tempdir
=
new
QTemporaryDir
;
QVERIFY
(
m_tempdir
->
isValid
());
// ensure we use some dummy config
KConfig
::
setMainConfigName
(
m_tempdir
->
path
()
+
QStringLiteral
(
"/testconfigfilerc"
));
// create KWrite variant to avoid plugin loading!
static
QCommandLineParser
parser
;
m_app
=
new
KateApp
(
parser
,
KateApp
::
ApplicationKWrite
,
m_tempdir
->
path
());
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment