summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/io/largefile
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/corelib/io/largefile')
-rw-r--r--tests/auto/corelib/io/largefile/largefile.pro2
-rw-r--r--tests/auto/corelib/io/largefile/tst_largefile.cpp6
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/corelib/io/largefile/largefile.pro b/tests/auto/corelib/io/largefile/largefile.pro
index 6c1bb8d7ea..e96d1398ca 100644
--- a/tests/auto/corelib/io/largefile/largefile.pro
+++ b/tests/auto/corelib/io/largefile/largefile.pro
@@ -2,3 +2,5 @@ CONFIG += testcase
TARGET = tst_largefile
QT = core testlib
SOURCES = tst_largefile.cpp
+INCLUDEPATH += ../../../../shared/
+HEADERS += ../../../../shared/emulationdetector.h
diff --git a/tests/auto/corelib/io/largefile/tst_largefile.cpp b/tests/auto/corelib/io/largefile/tst_largefile.cpp
index 7a174b79fd..99e1d5a32f 100644
--- a/tests/auto/corelib/io/largefile/tst_largefile.cpp
+++ b/tests/auto/corelib/io/largefile/tst_largefile.cpp
@@ -47,6 +47,8 @@
# endif
#endif // Q_OS_WIN
+#include "emulationdetector.h"
+
class tst_LargeFile
: public QObject
{
@@ -68,6 +70,10 @@ public:
#else
maxSizeBits = 24; // 16 MiB
#endif
+
+ // QEMU only supports < 4GB files
+ if (EmulationDetector::isRunningArmOnX86())
+ maxSizeBits = qMin(maxSizeBits, 28);
}
private: