Skip to content

Add regression tests for previously untested subsystems - #68

Merged
seanwevans merged 1 commit into
mainfrom
claude/test-coverage-subsystems
Jun 26, 2026
Merged

Add regression tests for previously untested subsystems#68
seanwevans merged 1 commit into
mainfrom
claude/test-coverage-subsystems

Conversation

@seanwevans

Copy link
Copy Markdown
Owner

Summary

Expands the regression suite from 13 → 19 tests, covering subsystems that previously had no tests at all (and where several of the bugs fixed in #67 had been hiding):

  • free_memory – single-segment allocate/free plus the double-free error path
  • signalsSIGSTOP → waiting, SIGCONT → ready, SIGTERM → terminated, and signal consumption
  • ipc – channel write/read draining and the user mailbox, plus the missing-channel error
  • semaphore_wait – cross-process semaphore wait/wake (one process parks as waiting, a release wakes it)
  • schedulerschedule_processes drives a ready process to terminated; schedule_threads drains ready threads without looping forever (regression guard for the infinite-loop fix in Refactor pg_os into single SQL file and improve documentation #67)
  • powerset_power_state records valid states and rejects unknown ones

All tests are deterministic and pass via make installcheck (19/19).

🤖 Generated with Claude Code


Generated by Claude Code

Expands coverage from 13 to 19 tests, locking in the behaviour of
subsystems that had no tests (and where several of the bugs fixed in the
prior cleanup had been hiding):

- free_memory: single-segment allocate/free and double-free error path
- signals: SIGSTOP/SIGCONT/SIGTERM handling and signal consumption
- ipc: channel write/read draining and the user mailbox; missing-channel error
- semaphore_wait: cross-process semaphore wait/wake (park a waiter, wake on release)
- scheduler: schedule_processes drives a ready process to terminated and
  schedule_threads drains ready threads without looping forever
- power: set_power_state records valid states and rejects unknown ones

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ty3Rkif9Vfe95w8TMiKB4b
@seanwevans
seanwevans merged commit 7df7627 into main Jun 26, 2026
0 of 2 checks passed
@seanwevans
seanwevans deleted the claude/test-coverage-subsystems branch June 26, 2026 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants