Fix test: QTemporaryDir::filePath was added in Qt 5.9
authorOlivier Goffart <ogoffart@woboq.com>
Thu, 19 Apr 2018 15:00:52 +0000 (17:00 +0200)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:57:51 +0000 (10:57 +0100)
test/csync/csync_tests/check_csync_exclude.cpp

index fa62df538ef90b6ab0a9b795a386a0014542e75e..31af71ad0243ac544f61d357857b2b167980db78 100644 (file)
@@ -711,7 +711,7 @@ static void check_placeholder_exclude(void **state)
     QByteArray expected = "\n#!version < 2.5.0\n*.owncloud\n";
 
     // 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");
 
     assert_true(QFile::exists(path));