tests: remove unnecessary skips for qemu
QEMU sysroots are now root owned. Change-Id: Id829cb5debc449efee929ef83876e6ffbf78332c Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>bb10
parent
dac4d5a492
commit
d5a20467b8
|
|
@ -6,10 +6,7 @@
|
|||
|
||||
qt_internal_add_test(tst_qtemporarydir
|
||||
SOURCES
|
||||
../../../../shared/emulationdetector.h
|
||||
tst_qtemporarydir.cpp
|
||||
INCLUDE_DIRECTORIES
|
||||
../../../../shared
|
||||
PUBLIC_LIBRARIES
|
||||
Qt::TestPrivate
|
||||
)
|
||||
|
|
|
|||
|
|
@ -43,7 +43,6 @@
|
|||
# include <sys/types.h>
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
#include "emulationdetector.h"
|
||||
|
||||
class tst_QTemporaryDir : public QObject
|
||||
{
|
||||
|
|
@ -311,12 +310,6 @@ void tst_QTemporaryDir::nonWritableCurrentDir()
|
|||
const QFileInfo nonWritableDirFi = QFileInfo(QLatin1String(nonWritableDir));
|
||||
QVERIFY(nonWritableDirFi.isDir());
|
||||
|
||||
if (EmulationDetector::isRunningArmOnX86()) {
|
||||
if (nonWritableDirFi.ownerId() == ::geteuid()) {
|
||||
QSKIP("Sysroot directories are owned by the current user");
|
||||
}
|
||||
}
|
||||
|
||||
QVERIFY(!nonWritableDirFi.isWritable());
|
||||
|
||||
ChdirOnReturn cor(QDir::currentPath());
|
||||
|
|
|
|||
|
|
@ -20,10 +20,7 @@ list(APPEND test_data "../smb-file.txt")
|
|||
qt_internal_add_test(tst_qnetworkreply
|
||||
OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/../" # special case
|
||||
SOURCES
|
||||
../../../../../shared/emulationdetector.h
|
||||
../tst_qnetworkreply.cpp
|
||||
INCLUDE_DIRECTORIES
|
||||
../../../../../shared
|
||||
PUBLIC_LIBRARIES
|
||||
Qt::CorePrivate
|
||||
Qt::NetworkPrivate
|
||||
|
|
|
|||
|
|
@ -103,8 +103,6 @@ Q_DECLARE_METATYPE(QAuthenticator*)
|
|||
Q_DECLARE_METATYPE(QNetworkProxyQuery)
|
||||
#endif
|
||||
|
||||
#include "emulationdetector.h"
|
||||
|
||||
typedef QSharedPointer<QNetworkReply> QNetworkReplyPtr;
|
||||
|
||||
#ifndef QT_NO_OPENSSL
|
||||
|
|
@ -2127,14 +2125,6 @@ void tst_QNetworkReply::getErrors()
|
|||
QSKIP("Running this test as root doesn't make sense");
|
||||
|
||||
}
|
||||
|
||||
if (EmulationDetector::isRunningArmOnX86()
|
||||
&& qstrcmp(QTest::currentDataTag(), "file-permissions") == 0) {
|
||||
QFileInfo filePermissionFile = QFileInfo(filePermissionFileName.toLatin1());
|
||||
if (filePermissionFile.ownerId() == ::geteuid()) {
|
||||
QSKIP("Sysroot directories are owned by the current user");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
QNetworkReplyPtr reply(manager.get(request));
|
||||
|
|
|
|||
Loading…
Reference in New Issue