diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-07-24 14:55:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-24 14:55:22 +0200 |
commit | 3f1fc5af7affe27bc2fbb1492377930cc33cc526 (patch) | |
tree | 2eae9f19d48200ed0d922abe6d2d8bc21585a31d /platform/iphone/godot_iphone.cpp | |
parent | 27d12092821df77a6186d2fd54055c54beefbea0 (diff) | |
parent | 579342810f5c453e91063c54ca6544300ea09090 (diff) |
Merge pull request #40148 from RevoluPowered/unit-test-revamp
Added doctest unit test framework
Diffstat (limited to 'platform/iphone/godot_iphone.cpp')
-rw-r--r-- | platform/iphone/godot_iphone.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/iphone/godot_iphone.cpp b/platform/iphone/godot_iphone.cpp index b9d217c9d2..aa5dbd5130 100644 --- a/platform/iphone/godot_iphone.cpp +++ b/platform/iphone/godot_iphone.cpp @@ -67,6 +67,9 @@ int iphone_main(int width, int height, int argc, char **argv, String data_dir) { printf("cwd %s\n", cwd); os = new OSIPhone(width, height, data_dir); + // We must override main when testing is enabled + TEST_MAIN_OVERRIDE + char *fargv[64]; for (int i = 0; i < argc; i++) { fargv[i] = argv[i]; |