Skip TestQSaveFile::transactionalWriteErrorRenaming as user root.
You can't deny root access to a file. Closes #201
This commit is contained in:
@@ -156,6 +156,9 @@ void TestQSaveFile::transactionalWriteCanceled()
|
||||
void TestQSaveFile::transactionalWriteErrorRenaming()
|
||||
{
|
||||
#ifndef Q_OS_WIN
|
||||
if (::geteuid() == 0) {
|
||||
QSKIP("not valid running this test as root", SkipAll);
|
||||
}
|
||||
const QString dir = tmpDir();
|
||||
QVERIFY(!dir.isEmpty());
|
||||
const QString targetFile = dir + QString::fromLatin1("/outfile");
|
||||
|
||||
Reference in New Issue
Block a user