Fix tst_QDirModel for qemu
QTBUG-43818 does not affect only Android, it can be reproduced also with qemu. Change-Id: I6364c09b3c7f860b34899e26056ad562b7c338f2 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
parent
0624085b73
commit
5c6d132408
@ -3,6 +3,9 @@ TARGET = tst_qdirmodel
|
||||
QT += widgets testlib
|
||||
SOURCES += tst_qdirmodel.cpp
|
||||
|
||||
INCLUDEPATH += ../../../../shared/
|
||||
HEADERS += ../../../../shared/emulationdetector.h
|
||||
|
||||
wince* {
|
||||
addit.files = dirtest\\test1\\*
|
||||
addit.path = dirtest\\test1
|
||||
|
@ -32,6 +32,7 @@
|
||||
#include <qtreeview.h>
|
||||
#include <qdir.h>
|
||||
#include <qdebug.h>
|
||||
#include "emulationdetector.h"
|
||||
|
||||
class tst_QDirModel : public QObject
|
||||
{
|
||||
@ -615,6 +616,9 @@ void tst_QDirModel::task196768_sorting()
|
||||
|
||||
#if defined(Q_OS_ANDROID)
|
||||
QEXPECT_FAIL("", "QTBUG-43818", Continue);
|
||||
#else
|
||||
if (EmulationDetector::isRunningArmOnX86())
|
||||
QEXPECT_FAIL("", "QTBUG-43818", Continue);
|
||||
#endif
|
||||
|
||||
QCOMPARE(index.data(), index2.data());
|
||||
|
Loading…
Reference in New Issue
Block a user