| 61 | namespace testing_detail { |
| 62 | |
| 63 | void fl_cleanup() { |
| 64 | // Clean up all background threads before DLL unload to prevent access violations |
| 65 | // This includes both coroutine threads and promise resolver threads |
| 66 | fl::EngineEvents::onExit(); |
| 67 | fl::platforms::cleanup_coroutine_threads(); |
| 68 | |
| 69 | // Clean up PARLIO mock to prevent LSAN leak false positive reports. |
| 70 | fl::detail::cleanup_parlio_mock(); |
| 71 | } |
| 72 | |
| 73 | int fl_run_tests(int argc, const char** argv) { |
| 74 | // NOTE: Crash handler is setup by runner.exe BEFORE loading this DLL |
no test coverage detected