testMove3LevelDirWithFile now uses mv function to move the directory
authorJoshua Sterner <joshua.s.sterner@gmail.com>
Thu, 9 May 2019 10:45:41 +0000 (03:45 -0700)
committerJoshua Sterner <joshua.s.sterner@gmail.com>
Thu, 9 May 2019 11:12:33 +0000 (04:12 -0700)
Signed-off-by: Joshua Sterner <joshua.s.sterner@gmail.com>
test/testfolderwatcher.cpp

index b5dba5fbc80ed816caabfb861a8ce3e4b80ad90f..fdd97701db7337ed1f3a57ee08954b9ddb687352 100644 (file)
@@ -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"));
     }