Fix test: QTemporaryDir::filePath was added in Qt 5.9

This commit is contained in:
Olivier Goffart 2018-04-19 17:00:52 +02:00 committed by Kevin Ottens
parent 765c12dae1
commit 600b1a72c1
No known key found for this signature in database
GPG key ID: 074BBBCB8DECC9E2

View file

@ -711,7 +711,7 @@ static void check_placeholder_exclude(void **state)
QByteArray expected = "\n#!version < 2.5.0\n*.owncloud\n"; QByteArray expected = "\n#!version < 2.5.0\n*.owncloud\n";
// Case 1: No file exists yet, parent dirs are missing too // Case 1: No file exists yet, parent dirs are missing too
path = tempDir.filePath("foo/bar/exclude.lst"); path = tempDir.path() + "/foo/bar/exclude.lst";
ExcludedFiles::setupPlaceholderExclude(path, ".owncloud"); ExcludedFiles::setupPlaceholderExclude(path, ".owncloud");
assert_true(QFile::exists(path)); assert_true(QFile::exists(path));