summaryrefslogtreecommitdiff
path: root/test/include
diff options
context:
space:
mode:
authorJuha Alanen <juha.alanen@mapbox.com>2020-01-31 11:52:12 +0200
committerJuha Alanen <juha.alanen@mapbox.com>2020-02-14 12:01:52 +0200
commit632c5f9d4c42a6e408c0565e34b2d1bd428ff018 (patch)
treeed2dc719f1a0e7077508c4f9b228abf77d61d6ce /test/include
parenta4c4de28285a5abe1343fe5abf718adad2b9d354 (diff)
downloadqtlocation-mapboxgl-632c5f9d4c42a6e408c0565e34b2d1bd428ff018.tar.gz
[test] Add iOS unit test runner
Diffstat (limited to 'test/include')
-rw-r--r--test/include/mbgl/test/util.hpp17
1 files changed, 6 insertions, 11 deletions
diff --git a/test/include/mbgl/test/util.hpp b/test/include/mbgl/test/util.hpp
index 959b3e646f..a8b1d1b2c6 100644
--- a/test/include/mbgl/test/util.hpp
+++ b/test/include/mbgl/test/util.hpp
@@ -4,17 +4,12 @@
#include <TargetConditionals.h>
#endif
-#if ANDROID
- #define TEST_READ_ONLY 0
-#elif TARGET_OS_IOS
- #define TEST_READ_ONLY 1
- #undef TEST_HAS_SERVER
- #define TEST_HAS_SERVER 0
-#else
- #define TEST_READ_ONLY 0
- #ifndef TEST_HAS_SERVER
- #define TEST_HAS_SERVER 1
- #endif
+#define TEST_READ_ONLY 0
+
+#if !ANDROID
+#ifndef TEST_HAS_SERVER
+#define TEST_HAS_SERVER 1
+#endif
#endif
#if TARGET_OS_SIMULATOR