Skip to content

[SUBISSUE #2] Increase Coverage for Process, FdTable, Signal, Scheduler, and WaitQueue #259

Done

Description

@marcobuschini

Parent issue: #257

Baseline

  • kernel/process/scheduler.cpp: 5.4% lines (8/148), 4.0% branches
  • kernel/process/Signal.cpp: 18.9% lines (41/217), 18.2% branches
  • kernel/process/wait_queue.cpp: 21.8% lines (12/55), 10.0% branches
  • kernel/process/Process.cpp: 28.9% lines (83/287), 17.1% branches
  • kernel/process/FdTable.cpp: 37.5% lines (48/128), 26.3% branches

Scope

Add host snitch unit tests (e.g. tests/host/process_subsystem_test.cpp) exercising:

  • FdTable: dynamic growth, FD_CLOEXEC, dup/dup2/dup3, close_cloexec(), invalid FD / table-limit error paths
  • Signal: sigaction, sigprocmask, kill/pending masks, uncatchable SIGKILL/SIGSTOP, SA_RESTART/handler reset
  • WaitQueue & Scheduler: enqueue/dequeue, wake_one/wake_all, remove, sleep/wakeup state transitions, priority/round-robin edges
  • Process: PCB lifecycle, parent/child ppid/pgid/sid, cwd resolution, exit status & zombie reaping

Acceptance Criteria

  • Line and branch coverage across kernel/process/* raised to >= 85% lines / >= 75% branches.
  • make clean-tests && make -j"$(nproc)" quality passes with zero warnings or ASan/UBSan errors.

Activity

  1. added
    subissue
    on Dec 3, 2026
  2. moved this from Backlog to Todo in kernelite/miloon Dec 3, 2026
  3. moved this from Todo to In progress in kernelite/miloon Dec 4, 2026
  4. moved this from In progress to In review in kernelite/miloon Dec 4, 2026
  5. moved this from In review to In progress in kernelite/miloon Dec 4, 2026
  6. moved this from In progress to Done in kernelite/miloon Dec 4, 2026
  7. self-assigned this
    on Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

subissue

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions