Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Plasma
Discover
Commits
3d74a43a
Commit
3d74a43a
authored
Dec 02, 2020
by
Aleix Pol Gonzalez
🐧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kns: make the test more reliable
Some test cases rely on a clean .qttest, so make sure it is.
parent
0dbca799
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
libdiscover/backends/KNSBackend/tests/KNSBackendTest.cpp
libdiscover/backends/KNSBackend/tests/KNSBackendTest.cpp
+2
-0
No files found.
libdiscover/backends/KNSBackend/tests/KNSBackendTest.cpp
View file @
3d74a43a
...
...
@@ -28,6 +28,8 @@ KNSBackendTest::KNSBackendTest(QObject* parent)
,
m_r
(
nullptr
)
{
QStandardPaths
::
setTestModeEnabled
(
true
);
QDir
(
QStandardPaths
::
writableLocation
(
QStandardPaths
::
GenericDataLocation
)).
removeRecursively
();
ResourcesModel
*
model
=
new
ResourcesModel
(
QStringLiteral
(
"kns-backend"
),
this
);
Q_ASSERT
(
!
model
->
backends
().
isEmpty
());
auto
findTestBackend
=
[](
AbstractResourcesBackend
*
backend
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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