diff options
author | Samuli Piippo <samuli.piippo@qt.io> | 2023-10-30 11:15:32 +0200 |
---|---|---|
committer | Samuli Piippo <samuli.piippo@qt.io> | 2023-11-03 11:00:11 +0200 |
commit | 99cec50f56309c28712a444c40475ce69badfbf9 (patch) | |
tree | 5ddcdd09c67efa11c926c6d0fc18228cfb31bb30 /tests/auto/corelib/io/qfile | |
parent | 83b592346ba98b3fba76cfac0b8662430b59e46b (diff) |
tests: skip setPermissions test if running as root
Running this test as root doesn't make sense, and it is the reason
why QNX is failing.
Pick-to: 6.6 6.5
Change-Id: Ibbdce9090882cb9dd87d7fcd0802a481f9e7883c
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/corelib/io/qfile')
-rw-r--r-- | tests/auto/corelib/io/qfile/tst_qfile.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/auto/corelib/io/qfile/tst_qfile.cpp b/tests/auto/corelib/io/qfile/tst_qfile.cpp index ff022849c9..2f178a7f23 100644 --- a/tests/auto/corelib/io/qfile/tst_qfile.cpp +++ b/tests/auto/corelib/io/qfile/tst_qfile.cpp @@ -1464,8 +1464,9 @@ void tst_QFile::setPermissions_data() void tst_QFile::setPermissions() { -#ifdef Q_OS_QNX - QSKIP("This test doesn't pass on QNX and no one has cared to investigate."); +#ifdef Q_OS_UNIX + if (::getuid() == 0) + QSKIP("Running this test as root doesn't make sense"); #endif QFETCH(bool, opened); |