mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Skip TestQSaveFile::transactionalWriteErrorRenaming as user root.
You can't deny root access to a file. Closes #201
This commit is contained in:
parent
5a31e055cf
commit
916ab99d62
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user