From: Joshua Sterner Date: Thu, 9 May 2019 10:45:41 +0000 (-0700) Subject: testMove3LevelDirWithFile now uses mv function to move the directory X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~279^2^2~32^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=bd9fcd88d85f48889e5e6fd55456cec7b123a22c;p=nextcloud-desktop.git testMove3LevelDirWithFile now uses mv function to move the directory Signed-off-by: Joshua Sterner --- diff --git a/test/testfolderwatcher.cpp b/test/testfolderwatcher.cpp index b5dba5fbc..fdd97701d 100644 --- a/test/testfolderwatcher.cpp +++ b/test/testfolderwatcher.cpp @@ -146,9 +146,7 @@ private slots: mkdir(_rootPath + "/a0/b"); mkdir(_rootPath + "/a0/b/c"); touch(file); - QString cmd = QString("mv " + _rootPath + "/a0 " + _rootPath + "/a"); - qDebug() << "Command: " << cmd; - system(cmd.toLocal8Bit()); + mv(_rootPath + "/a0 ", _rootPath + "/a"); QVERIFY(waitForPathChanged(_rootPath + "/a/b/c/empty.txt")); }