testMove3LevelDirWithFile now uses mv function to move the directory

Signed-off-by: Joshua Sterner <joshua.s.sterner@gmail.com>
This commit is contained in:
Joshua Sterner 2019-05-09 03:45:41 -07:00
parent b6ff17c50b
commit bd9fcd88d8
1 changed files with 1 additions and 3 deletions

View 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"));
}