Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Gallien <matthieu_gallien@yahoo.fr>2022-11-10 00:49:32 +0300
committerGitHub <noreply@github.com>2022-11-10 00:49:32 +0300
commit83c3746857e12f313f8c2a433b434335d67cf668 (patch)
treec29426bc60c1df5c34a819d27ce432b9c361c82b
parentde7976eb83c087c60429f339bc74527dd85e680c (diff)
parent7dfb27f7995193ba6738f11b88a809aaa9911095 (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.yml2
-rw-r--r--test/testfolderwatcher.cpp2
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());