Tests: Fix compile

Broke with e027ed5e96.

Change-Id: Ic79537865f42c4d6190d262fcf73399ed42b3035
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Stenger
2019-08-14 13:37:35 +02:00
committed by hjk
parent 38e69c907b
commit 10b32863ca

View File

@@ -161,7 +161,7 @@ void tst_fileutils::fileName()
QFETCH(QString, path); QFETCH(QString, path);
QFETCH(int, components); QFETCH(int, components);
QFETCH(QString, result); QFETCH(QString, result);
QCOMPARE(FilePath::fromString(path).fileName(components), result); QCOMPARE(FilePath::fromString(path).fileNameWithPathComponents(components), result);
} }
QTEST_APPLESS_MAIN(tst_fileutils) QTEST_APPLESS_MAIN(tst_fileutils)