diff --git a/test/testfolderwatcher.cpp b/test/testfolderwatcher.cpp index d8c7da0924f7f..c8ac44d40d3f6 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());