Disable TestQSaveFile::transactionalWriteErrorRenaming() on Windows.

QSaveFile::setPermissions() is not implemented in the QIODevice
based version for Qt 4.
This commit is contained in:
Felix Geyer 2012-10-22 17:49:42 +02:00
parent 59847f4f30
commit 47d3c7e05a

View File

@ -152,6 +152,7 @@ void TestQSaveFile::transactionalWriteCanceled()
void TestQSaveFile::transactionalWriteErrorRenaming()
{
#ifndef Q_OS_WIN
const QString dir = tmpDir();
QVERIFY(!dir.isEmpty());
const QString targetFile = dir + QString::fromLatin1("/outfile");
@ -178,6 +179,7 @@ void TestQSaveFile::transactionalWriteErrorRenaming()
#else
QVERIFY(file.setPermissions(QFile::ReadOwner | QFile::WriteOwner));
#endif
#endif // !Q_OS_WIN
}
QString TestQSaveFile::tmpDir()