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

Go to the source code of this file.

Functions

auto fifo_scheduler_test () -> bool
 

Function Documentation

◆ fifo_scheduler_test()

auto fifo_scheduler_test ( ) -> bool

Definition at line 328 of file fifo_scheduler_test.cpp.

328 {
329 klog::Info("\n=== FIFO Scheduler System Tests ===\n");
330
331 if (!test_fifo_basic_functionality()) {
332 return false;
333 }
334
335 if (!test_fifo_ordering()) {
336 return false;
337 }
338
339 if (!test_fifo_dequeue()) {
340 return false;
341 }
342
343 if (!test_fifo_statistics()) {
344 return false;
345 }
346
347 if (!test_fifo_mixed_operations()) {
348 return false;
349 }
350
351 if (!test_fifo_repeated_enqueue()) {
352 return false;
353 }
354
355 if (!test_fifo_hooks()) {
356 return false;
357 }
358
359 if (!test_fifo_robustness()) {
360 return false;
361 }
362
363 klog::Info("=== All FIFO Scheduler Tests Passed ===\n");
364 return true;
365}
auto Info(etl::format_string< Args... > fmt, Args &&... args) -> void
以 INFO 级别记录日志
Here is the call graph for this function: