| 1529 | } |
| 1530 | |
| 1531 | void tst_util::reencryptPathNormalization() { |
| 1532 | QTemporaryDir tempDir; |
| 1533 | QVERIFY2(tempDir.isValid(), "Temporary directory should be created"); |
| 1534 | |
| 1535 | QString basePath = tempDir.path(); |
| 1536 | QString withExtraSlashes = basePath + "/./subdir/../"; |
| 1537 | QString cleaned = QDir::cleanPath(withExtraSlashes); |
| 1538 | QString normalized = QDir::cleanPath(basePath); |
| 1539 | QVERIFY2(cleaned == normalized, |
| 1540 | qPrintable(QString("cleanPath should normalize: expected %1, got %2") |
| 1541 | .arg(normalized, cleaned))); |
| 1542 | } |
| 1543 | |
| 1544 | void tst_util::reencryptPathAbsolutePath() { |
| 1545 | QTemporaryDir tempDir; |