Skip to content

Commit

Permalink
properly escape a path when creating a test file during tests
Browse files Browse the repository at this point in the history
Signed-off-by: Matthieu Gallien <[email protected]>
  • Loading branch information
mgallien committed Nov 9, 2022
1 parent de7976e commit d70d4f6
Showing 1 changed file with 1 addition and 1 deletion.
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 d70d4f6

Please sign in to comment.