Merge pull request #113557 from bruvzg/test_prof_clean

Fix profiler cleanup with `--test`.
This commit is contained in:
Rémi Verschelde 2025-12-04 15:53:06 +01:00
commit 78d91947f6
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -93,6 +93,7 @@ public:
bool run_test = false; \ bool run_test = false; \
int return_code = Main::test_entrypoint(argc, argv, run_test); \ int return_code = Main::test_entrypoint(argc, argv, run_test); \
if (run_test) { \ if (run_test) { \
godot_cleanup_profiler(); \
return return_code; \ return return_code; \
} }
@ -100,5 +101,6 @@ public:
bool run_test = false; \ bool run_test = false; \
int return_code = Main::test_entrypoint(argc, argv, run_test); \ int return_code = Main::test_entrypoint(argc, argv, run_test); \
if (run_test) { \ if (run_test) { \
godot_cleanup_profiler(); \
return return_code; \ return return_code; \
} }