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/linuxbsd | |
parent | 27d12092821df77a6186d2fd54055c54beefbea0 (diff) | |
parent | 579342810f5c453e91063c54ca6544300ea09090 (diff) |
Merge pull request #40148 from RevoluPowered/unit-test-revamp
Added doctest unit test framework
Diffstat (limited to 'platform/linuxbsd')
-rw-r--r-- | platform/linuxbsd/godot_linuxbsd.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/linuxbsd/godot_linuxbsd.cpp b/platform/linuxbsd/godot_linuxbsd.cpp index 3ed64e9d46..e1796ccefe 100644 --- a/platform/linuxbsd/godot_linuxbsd.cpp +++ b/platform/linuxbsd/godot_linuxbsd.cpp @@ -41,6 +41,9 @@ int main(int argc, char *argv[]) { setlocale(LC_CTYPE, ""); + // We must override main when testing is enabled + TEST_MAIN_OVERRIDE + char *cwd = (char *)malloc(PATH_MAX); ERR_FAIL_COND_V(!cwd, ERR_OUT_OF_MEMORY); char *ret = getcwd(cwd, PATH_MAX); |