Fix test for the case where the plasma src dir contains a symlink

This commit is contained in:
David Faure 2012-12-23 21:23:44 +01:00
parent 026c185eb1
commit 9d7aedfcd4

View File

@ -156,8 +156,8 @@ void PackageStructureTest::path()
{
qDebug() << "real paths are" << ps.filePath("images") << ps.filePath("mainscript");
qDebug() << "we wants" << QString(m_packagePath + QString("contents/images")) << QString(m_packagePath + QString("contents/code/main.js"));
QCOMPARE(ps.filePath("images"), QString(m_packagePath + QString("contents/images")));
QCOMPARE(ps.filePath("mainscript"), QString(m_packagePath + QString("contents/code/main.js")));
QCOMPARE(ps.filePath("images"), QFileInfo(m_packagePath + QString("contents/images")).canonicalFilePath());
QCOMPARE(ps.filePath("mainscript"), QFileInfo(m_packagePath + QString("contents/code/main.js")).canonicalFilePath());
}
void PackageStructureTest::name()