mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-09-18 11:54:47 -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
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue