Commit acee63c3 authored by Alexander Saoutkin's avatar Alexander Saoutkin Committed by Fabian Vogt

Add back use of fusermount for linux

parent b4d716e2
......@@ -88,13 +88,17 @@ void FileOpsTest::cleanupTestCase()
// Make sure that the mountpoint is not busy
QProcess umountProcess;
// umount has to be setuid root (Linux) or vfs.usermount=1 (FreeBSD)
umountProcess.start(QStringLiteral("umount"), {m_mountDir.path()});
QProcess unmountProcess;
// No fusermount on FreeBSD, use umount directly instead
unmountProcess.start(QStringLiteral("umount"), {m_mountDir.path()});
unmountProcess.start(QStringLiteral("fusermount3"), {QStringLiteral("-u"), m_mountDir.path()});
QCOMPARE(umountProcess.exitStatus(), QProcess::NormalExit);
QCOMPARE(umountProcess.exitCode(), 0);
QCOMPARE(unmountProcess.exitStatus(), QProcess::NormalExit);
QCOMPARE(unmountProcess.exitCode(), 0);
// Remove only after umounting suceeded
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment