properly escape a path when creating a test file during tests
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
parent
c3bbe146e7
commit
b414d43c23
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in New Issue