diff --git a/src/plugins/remotelinux/filesystemaccess_test.cpp b/src/plugins/remotelinux/filesystemaccess_test.cpp index cb0cf3b83ee..36d7c9695b8 100644 --- a/src/plugins/remotelinux/filesystemaccess_test.cpp +++ b/src/plugins/remotelinux/filesystemaccess_test.cpp @@ -297,6 +297,11 @@ void FileSystemAccessTest::testFileTransfer() QVERIFY2(result.m_errorString.isEmpty(), qPrintable(result.m_errorString)); QCOMPARE(result.m_exitCode, 0); QCOMPARE(result.m_error, QProcess::UnknownError); + + // Cleanup remote + const FilePath remoteDir = m_device->filePath(QString("/tmp/foo/")); + QString errorString; + QVERIFY2(remoteDir.removeRecursively(&errorString), qPrintable(errorString)); } } // Internal