File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99#include " system/dnfmanager.h"
1010#include " system/polkit.h"
1111
12+ namespace {
13+
14+ QTemporaryDir createExecutableTempDir () {
15+ const QString basePath =
16+ QDir::cleanPath (QDir::currentPath () + QStringLiteral (" /ro-control-test-XXXXXX" ));
17+ return QTemporaryDir (basePath);
18+ }
19+
20+ }
21+
1222class TestSystemIntegration : public QObject {
1323 Q_OBJECT
1424
1525private slots:
1626 void testCommandRunnerUsesProgramOverride () {
17- QTemporaryDir tempDir;
27+ QTemporaryDir tempDir = createExecutableTempDir () ;
1828 QVERIFY (tempDir.isValid ());
1929
2030 const QString scriptPath = tempDir.filePath (QStringLiteral (" fake-dnf.sh" ));
@@ -37,7 +47,7 @@ private slots:
3747 }
3848
3949 void testCapabilityProbeUsesProgramOverride () {
40- QTemporaryDir tempDir;
50+ QTemporaryDir tempDir = createExecutableTempDir () ;
4151 QVERIFY (tempDir.isValid ());
4252
4353 const QString scriptPath =
You can’t perform that action at this time.
0 commit comments