| 119 | // --------------------------------------------------------------------------- |
| 120 | |
| 121 | void 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 | |
| 130 | void test_exit_with_error(void* /*arg*/) { |
| 131 | klog::Info("=== Exit With Error Test ==="); |