diff options
author | Matthieu Gallien <matthieu_gallien@yahoo.fr> | 2022-11-10 00:49:32 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-10 00:49:32 +0300 |
commit | 83c3746857e12f313f8c2a433b434335d67cf668 (patch) | |
tree | c29426bc60c1df5c34a819d27ce432b9c361c82b | |
parent | de7976eb83c087c60429f339bc74527dd85e680c (diff) | |
parent | 7dfb27f7995193ba6738f11b88a809aaa9911095 (diff) |
Merge pull request #5151 from nextcloud/ci/fixOneTestOnWindows
properly escape a path when creating a test file during tests
-rw-r--r-- | .github/workflows/windows-build-and-test.yml | 2 | ||||
-rw-r--r-- | test/testfolderwatcher.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/windows-build-and-test.yml b/.github/workflows/windows-build-and-test.yml index 8cb21f464..8ae1085ad 100644 --- a/.github/workflows/windows-build-and-test.yml +++ b/.github/workflows/windows-build-and-test.yml @@ -72,7 +72,7 @@ jobs: $binFolder = "$buildFolder\bin" - & OpenCppCoverage.exe --quiet --sources ${{ github.workspace }} --modules $binFolder\*.dll* --export_type cobertura:${{ env.COBERTURA_COVERAGE_FILE }} --cover_children -- ctest --output-on-failure --timeout 300 -j (Get-CimInstance Win32_ComputerSystem).NumberOfLogicalProcessors + & OpenCppCoverage.exe --quiet --sources ${{ github.workspace }} --modules $binFolder\*.dll* --export_type cobertura:${{ env.COBERTURA_COVERAGE_FILE }} --cover_children -- ctest --output-on-failure --timeout 300 } runTestsAndCreateCoverage diff --git a/test/testfolderwatcher.cpp b/test/testfolderwatcher.cpp index d8c7da092..c8ac44d40 100644 --- a/test/testfolderwatcher.cpp +++ b/test/testfolderwatcher.cpp @@ -147,7 +147,7 @@ private slots: void testACreate() { // create a new file QString file(_rootPath + "/foo.txt"); QString cmd; - cmd = QString("echo \"xyz\" > %1").arg(file); + cmd = QString("echo \"xyz\" > \"%1\"").arg(file); qDebug() << "Command: " << cmd; system(cmd.toLocal8Bit()); |