MCPcopy Create free account
hub / github.com/FastLED/FastLED / fl_main

Function fl_main

tests/doctest_main.cpp:101–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101int 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

Callers 1

mainFunction · 0.85

Calls 6

run_allFunction · 0.85
cancelFunction · 0.85
fl_cleanupFunction · 0.85
setup_crash_handlerFunction · 0.70
setupFunction · 0.70
parse_argsFunction · 0.50

Tested by

no test coverage detected