From 916ab99d6249f17271338ae711cb226ba1d0f4b5 Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Mon, 26 May 2014 18:24:43 +0200 Subject: [PATCH] Skip TestQSaveFile::transactionalWriteErrorRenaming as user root. You can't deny root access to a file. Closes #201 --- tests/TestQSaveFile.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/TestQSaveFile.cpp b/tests/TestQSaveFile.cpp index 6be714efd..443db5299 100644 --- a/tests/TestQSaveFile.cpp +++ b/tests/TestQSaveFile.cpp @@ -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");