Change CService::getAircraftLivery() to return livery without path

CService::getAircraftLivery() is expected to return the livery name itself
without the full path.

ref T378
This commit is contained in:
Roland Winklmeier
2018-10-18 15:01:16 +02:00
committed by Klaus Basan
parent 1fecf65a40
commit 1a63c00a71
3 changed files with 13 additions and 2 deletions

View File

@@ -43,6 +43,7 @@ namespace BlackMiscTest
QCOMPARE(QString::fromStdString(getFileName("foo/test.txt")), QString("test.txt"));
QCOMPARE(QString::fromStdString(getFileName("test.txt")), QString("test.txt"));
QCOMPARE(QString::fromStdString(getFileName("foo/test.txt.txt")), QString("test.txt.txt"));
QCOMPARE(QString::fromStdString(getFileName("foo/bar")), QString("bar"));
}
void CTestXPlane::getDirNameTest()