SimpleKernel 1.17.0
Loading...
Searching...
No Matches
idle_scheduler_test.cpp File Reference
#include "idle_scheduler.hpp"
#include <cstdint>
#include "system_test.h"
#include "task_control_block.hpp"
#include "task_messages.hpp"
Include dependency graph for idle_scheduler_test.cpp:

Go to the source code of this file.

Functions

auto idle_scheduler_test () -> bool
 

Function Documentation

◆ idle_scheduler_test()

auto idle_scheduler_test ( ) -> bool

Definition at line 246 of file idle_scheduler_test.cpp.

246 {
247 klog::Info("\n=== Idle Scheduler System Tests ===\n");
248
249 if (!test_idle_basic_functionality()) {
250 return false;
251 }
252
253 if (!test_idle_pick_next_does_not_remove()) {
254 return false;
255 }
256
257 if (!test_idle_enqueue_dequeue()) {
258 return false;
259 }
260
261 if (!test_idle_on_tick_always_false()) {
262 return false;
263 }
264
265 if (!test_idle_on_time_slice_expired_always_false()) {
266 return false;
267 }
268
269 if (!test_idle_statistics()) {
270 return false;
271 }
272
273 if (!test_idle_dequeue_wrong_task()) {
274 return false;
275 }
276
277 if (!test_idle_robustness()) {
278 return false;
279 }
280
281 klog::Info("=== All Idle Scheduler Tests Passed ===\n");
282 return true;
283}
auto Info(etl::format_string< Args... > fmt, Args &&... args) -> void
以 INFO 级别记录日志
Here is the call graph for this function: