diff options
author | Matthieu Gallien <matthieu.gallien@nextcloud.com> | 2022-11-09 18:36:38 +0300 |
---|---|---|
committer | Matthieu Gallien <matthieu_gallien@yahoo.fr> | 2022-11-09 20:35:10 +0300 |
commit | d70d4f61ec40dfc4c32e39b7eea9081368adfb6a (patch) | |
tree | d17eaa6b662623d30a32fd61e3bda2d05fdba013 | |
parent | de7976eb83c087c60429f339bc74527dd85e680c (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.cpp | 2 |
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()); |