mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-26 15:59:50 -05:00
Disable TestQSaveFile::transactionalWriteErrorRenaming() on Windows.
QSaveFile::setPermissions() is not implemented in the QIODevice based version for Qt 4.
This commit is contained in:
parent
59847f4f30
commit
47d3c7e05a
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user