MCPcopy Create free account
hub / github.com/Simple-XX/SimpleKernel / error_work

Function error_work

tests/system_test/exit_test.cpp:121–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119// ---------------------------------------------------------------------------
120
121void error_work(void* arg) {
122 auto* flag = reinterpret_cast<std::atomic<int>*>(arg);
123 klog::Debug("error_work: running");
124 (void)sys_sleep(30);
125 *flag = 42;
126 klog::Debug("error_work: done, calling sys_exit(42)");
127 sys_exit(42);
128}
129
130void test_exit_with_error(void* /*arg*/) {
131 klog::Info("=== Exit With Error Test ===");

Callers

nothing calls this directly

Calls 3

DebugFunction · 0.85
sys_sleepFunction · 0.85
sys_exitFunction · 0.85

Tested by

no test coverage detected