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

Go to the source code of this file.

Functions

auto rr_scheduler_test () -> bool
 

Function Documentation

◆ rr_scheduler_test()

auto rr_scheduler_test ( ) -> bool

Definition at line 431 of file rr_scheduler_test.cpp.

431 {
432 klog::Info("\n=== Round-Robin Scheduler System Tests ===\n");
433
434 if (!test_rr_basic_functionality()) {
435 return false;
436 }
437
438 if (!test_rr_round_robin_behavior()) {
439 return false;
440 }
441
442 if (!test_rr_time_slice_management()) {
443 return false;
444 }
445
446 if (!test_rr_dequeue()) {
447 return false;
448 }
449
450 if (!test_rr_statistics()) {
451 return false;
452 }
453
454 if (!test_rr_fairness()) {
455 return false;
456 }
457
458 if (!test_rr_mixed_operations()) {
459 return false;
460 }
461
462 if (!test_rr_multiple_rounds()) {
463 return false;
464 }
465
466 if (!test_rr_hooks()) {
467 return false;
468 }
469
470 if (!test_rr_robustness()) {
471 return false;
472 }
473
474 if (!test_rr_interleaved_operations()) {
475 return false;
476 }
477
478 klog::Info("=== All Round-Robin Scheduler Tests Passed ===\n");
479 return true;
480}
auto Info(etl::format_string< Args... > fmt, Args &&... args) -> void
以 INFO 级别记录日志
Here is the call graph for this function: