Use Canonical Paths for Relative Paths Calculations (#4211)
Fix redundant path elements Closes #4173
This commit is contained in:
@@ -40,8 +40,11 @@ private slots:
|
||||
|
||||
QString absPath = fi.absoluteFilePath();
|
||||
QString relPath = "drums/kick01.ogg";
|
||||
QString fuzPath = absPath;
|
||||
fuzPath.replace(relPath, "drums/.///kick01.ogg");
|
||||
QCOMPARE(SampleBuffer::tryToMakeRelative(absPath), relPath);
|
||||
QCOMPARE(SampleBuffer::tryToMakeAbsolute(relPath), absPath);
|
||||
QCOMPARE(SampleBuffer::tryToMakeRelative(fuzPath), relPath);
|
||||
}
|
||||
} RelativePathTests;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user