path: root/tests/auto/corelib/io/qfile
diff options
authorLiang Qi <>2018-05-09 13:38:34 +0200
committerFrederik Gladhorn <>2018-06-25 08:01:19 +0000
commitc3059391fea326b7115cf038ecdad8e820a0c2d5 (patch)
tree7038db26d996020fb8a63d97814b7053bc3d44da /tests/auto/corelib/io/qfile
parent4c68e2558c8b90f301032f2e29130e6ac509dc21 (diff)
Make tests compile for Android
This only enables compilation, it doesn't fix any test. Qt on Android supports process, but not TEST_HELPER_INSTALLS. See also acdd57cb for winrt. android-ndk-r10e is used to compile, see . corelib/io/{qdir,qresourceengine} need to be fixed later. Done-with: Frederik Gladhorn <> Done-with: MÃ¥rten Nordheim <> Change-Id: I34b924c8ae5d46d6835b8f0a6606450920f4423b Reviewed-by: Thiago Macieira <> Reviewed-by: Frederik Gladhorn <>
Diffstat (limited to 'tests/auto/corelib/io/qfile')
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/corelib/io/qfile/tst_qfile.cpp b/tests/auto/corelib/io/qfile/tst_qfile.cpp
index ad00e25e7d..c202923898 100644
--- a/tests/auto/corelib/io/qfile/tst_qfile.cpp
+++ b/tests/auto/corelib/io/qfile/tst_qfile.cpp
@@ -85,6 +85,12 @@ QT_END_NAMESPACE
#include <stdio.h>
#include <errno.h>
+#ifdef Q_OS_ANDROID
+// Android introduces a braindamaged fileno macro that isn't
+// compatible with the POSIX fileno or its own FILE type.
+# undef fileno
#if defined(Q_OS_WIN)
#include "../../../network-settings.h"