From bd9fcd88d85f48889e5e6fd55456cec7b123a22c Mon Sep 17 00:00:00 2001 From: Joshua Sterner Date: Thu, 9 May 2019 03:45:41 -0700 Subject: [PATCH] testMove3LevelDirWithFile now uses mv function to move the directory Signed-off-by: Joshua Sterner --- test/testfolderwatcher.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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")); }