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@nextcloud.com>2022-11-09 18:36:38 +0300
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>2022-11-09 20:35:10 +0300
commitd70d4f61ec40dfc4c32e39b7eea9081368adfb6a (patch)
treed17eaa6b662623d30a32fd61e3bda2d05fdba013
parentde7976eb83c087c60429f339bc74527dd85e680c (diff)
properly escape a path when creating a test file during tests
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
-rw-r--r--test/testfolderwatcher.cpp2
1 files changed, 1 insertions, 1 deletions
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());