| 99 | } |
| 100 | |
| 101 | int fl_main(int argc, char** argv) { |
| 102 | #ifdef ENABLE_CRASH_HANDLER |
| 103 | setup_crash_handler(); |
| 104 | #endif |
| 105 | |
| 106 | #ifndef TEST_DLL_MODE |
| 107 | // Setup internal timeout watchdog (detects hangs from within test process) |
| 108 | // Only in standalone mode - DLL mode uses external monitoring |
| 109 | timeout_watchdog::setup(); // Default: 20 seconds, configurable via FASTLED_TEST_TIMEOUT |
| 110 | #endif |
| 111 | |
| 112 | // Run fl_unittest test framework |
| 113 | fl::test::RunOptions opts = fl::test::parse_args(argc, (const char**)argv); |
| 114 | int result = fl::test::run_all(opts); |
| 115 | |
| 116 | #ifndef TEST_DLL_MODE |
| 117 | // Cancel watchdog before cleanup (tests completed successfully) |
| 118 | timeout_watchdog::cancel(); |
| 119 | #endif |
| 120 | |
| 121 | fl_cleanup(); |
| 122 | return result; |
| 123 | } |
| 124 | |
| 125 | } // namespace testing_detail |
| 126 |
no test coverage detected