| 1542 | } |
| 1543 | |
| 1544 | void tst_util::reencryptPathAbsolutePath() { |
| 1545 | QTemporaryDir tempDir; |
| 1546 | QVERIFY2(tempDir.isValid(), "Temporary directory should be created"); |
| 1547 | |
| 1548 | QString tempPath = tempDir.path(); |
| 1549 | QVERIFY(QDir(tempPath).mkdir("testdir")); |
| 1550 | QString relativePathFromTemp = tempPath + "/testdir"; |
| 1551 | QDir dir; |
| 1552 | QString result = QDir::cleanPath(QDir(relativePathFromTemp).absolutePath()); |
| 1553 | QString expected = QDir::cleanPath(tempPath + "/testdir"); |
| 1554 | QVERIFY2( |
| 1555 | result == expected, |
| 1556 | qPrintable( |
| 1557 | QString("Absolute path: expected %1, got %2").arg(expected, result))); |
| 1558 | } |
| 1559 | |
| 1560 | // Tests targeting the const-ref refactor of findBinaryInPath. |
| 1561 | // The PR changed the signature from findBinaryInPath(QString) to |