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:
Sami Nurmenniemi 2017-04-04 15:07:30 +03:00
parent 0624085b73
commit 5c6d132408
2 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -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());