| 108 | } |
| 109 | |
| 110 | void CraftRuntimeTest::testGetenv() |
| 111 | { |
| 112 | QFETCH_GLOBAL(TempDirWrapper, runtimeInstance); |
| 113 | |
| 114 | QVERIFY(!runtimeInstance->getenv("KDEROOT").isEmpty()); |
| 115 | |
| 116 | QDir craftDir1 = QDir(QString::fromLocal8Bit(runtimeInstance->getenv("KDEROOT"))); |
| 117 | QDir craftDir2 = QDir(runtimeInstance.path()); |
| 118 | QCOMPARE(craftDir1.canonicalPath(), craftDir2.canonicalPath()); |
| 119 | |
| 120 | QString pythonpathValue = QString::fromLocal8Bit(runtimeInstance->getenv("PYTHONPATH")); |
| 121 | QVERIFY(!pythonpathValue.isEmpty()); |
| 122 | QDir craftPythonPathDir = QDir(pythonpathValue); |
| 123 | |
| 124 | QVERIFY(craftPythonPathDir.path().startsWith(craftDir1.path())); |
| 125 | } |
| 126 | |
| 127 | void CraftRuntimeTest::testStartProcess() |
| 128 | { |
nothing calls this directly
no test coverage detected