Skip TestQSaveFile::transactionalWriteErrorRenaming as user root.

You can't deny root access to a file.

Closes #201
This commit is contained in:
Felix Geyer 2014-05-26 18:24:43 +02:00
parent 5a31e055cf
commit 916ab99d62

View File

@ -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");