Skip to content

Commit

Permalink
Merge pull request #5151 from nextcloud/ci/fixOneTestOnWindows
Browse files Browse the repository at this point in the history
properly escape a path when creating a test file during tests
  • Loading branch information
mgallien authored Nov 9, 2022
2 parents de7976e + 7dfb27f commit 83c3746
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/windows-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/testfolderwatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down

0 comments on commit 83c3746

Please sign in to comment.