mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04: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()
|
void TestQSaveFile::transactionalWriteErrorRenaming()
|
||||||
{
|
{
|
||||||
|
#ifndef Q_OS_WIN
|
||||||
const QString dir = tmpDir();
|
const QString dir = tmpDir();
|
||||||
QVERIFY(!dir.isEmpty());
|
QVERIFY(!dir.isEmpty());
|
||||||
const QString targetFile = dir + QString::fromLatin1("/outfile");
|
const QString targetFile = dir + QString::fromLatin1("/outfile");
|
||||||
@ -178,6 +179,7 @@ void TestQSaveFile::transactionalWriteErrorRenaming()
|
|||||||
#else
|
#else
|
||||||
QVERIFY(file.setPermissions(QFile::ReadOwner | QFile::WriteOwner));
|
QVERIFY(file.setPermissions(QFile::ReadOwner | QFile::WriteOwner));
|
||||||
#endif
|
#endif
|
||||||
|
#endif // !Q_OS_WIN
|
||||||
}
|
}
|
||||||
|
|
||||||
QString TestQSaveFile::tmpDir()
|
QString TestQSaveFile::tmpDir()
|
||||||
|
Loading…
Reference in New Issue
Block a user