mirror of
https://github.com/KDE/konsole.git
synced 2025-12-23 23:38:08 -05:00
ensure symlinked shells don't break the tests
This commit is contained in:
@@ -133,7 +133,11 @@ void TerminalInterfaceTest::testTerminalInterface()
|
||||
|
||||
QFile procExeTarget(QStringLiteral("/proc/%1/exe").arg(terminalProcessId));
|
||||
if (procExeTarget.exists()) {
|
||||
QCOMPARE(procExeTarget.symLinkTarget(), defaultExePath.trimmed());
|
||||
const auto procExeTargetNormalized = QFileInfo(procExeTarget.symLinkTarget()).canonicalFilePath();
|
||||
const auto defaultExePathNormalized = QFileInfo(defaultExePath.trimmed()).canonicalFilePath();
|
||||
QVERIFY(!procExeTargetNormalized.isEmpty());
|
||||
QVERIFY(!defaultExePathNormalized.isEmpty());
|
||||
QCOMPARE(procExeTargetNormalized, defaultExePathNormalized);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user