ptests: Skip qlocalsocket when running as root on Linux
On Linux root user has access rights to all files so it makes no sense to verify socket file permissions. Task-number: QTBUG-118680 Change-Id: I94a95e80c311f8d5cd6c799b1a76ffaaab7d9167 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
96ce1aabd4
commit
53a58a191c
@ -1664,6 +1664,9 @@ void tst_QLocalSocket::asyncDisconnectNotify()
|
||||
void tst_QLocalSocket::verifySocketOptions_data()
|
||||
{
|
||||
#ifdef Q_OS_LINUX
|
||||
if (::geteuid() == 0)
|
||||
QSKIP("Running this test as root doesn't make sense");
|
||||
|
||||
QTest::addColumn<QString>("service");
|
||||
QTest::addColumn<QLocalServer::SocketOption>("opts");
|
||||
QTest::addColumn<QFile::Permissions>("perms");
|
||||
|
Loading…
x
Reference in New Issue
Block a user