MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / test_task

Function test_task

Tests/TactilityKernel/Source/Main.cpp:19–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17extern "C" struct Module platform_posix_module;
18
19void test_task(void* parameter) {
20 auto* data = (TestTaskData*)parameter;
21
22 doctest::Context context;
23
24 context.applyCommandLine(data->argc, data->argv);
25
26 // overrides
27 context.setOption("no-breaks", true); // don't break in the debugger when assertions fail
28
29 Module* dts_modules[] = { &platform_posix_module, nullptr };
30 DtsDevice dts_devices[] = { DTS_DEVICE_TERMINATOR };
31 check(kernel_init(dts_modules, dts_devices) == ERROR_NONE);
32
33 data->result = context.run();
34
35 vTaskEndScheduler();
36
37 vTaskDelete(nullptr);
38}
39
40int main(int argc, char** argv) {
41 TestTaskData data = {

Callers

nothing calls this directly

Calls 5

kernel_initFunction · 0.85
applyCommandLineMethod · 0.80
setOptionMethod · 0.80
runMethod · 0.80
checkFunction · 0.50

Tested by

no test coverage detected