]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
tests: expand host unit tests from 47 to 101 checks
authorTulio A M Mendes <[email protected]>
Mon, 27 Apr 2026 16:58:38 +0000 (13:58 -0300)
committerTulio A M Mendes <[email protected]>
Mon, 4 May 2026 23:52:08 +0000 (20:52 -0300)
commit5f693680c64b1731fe0e71407f463a3e285d1838
tree6391d402b1759c5ccd0d3893d01bef33e4e77a57
parentf3e44b7c358a8472a666fa7431f1d6541e73265c
tests: expand host unit tests from 47 to 101 checks

test_utils.c (28→63):
- tar_parse_octal: zero, simple, large, empty, null-term, non-octal skip
- path_is_mountpoint_prefix: root, exact, child, no-match, partial, empty
- normalize_mountpoint: root, simple, trailing-slash, empty, null, normalized
- vfs_check_permission: root, owner/group/other read/write, mode-0, 0644
- elf32_validate: valid ET_EXEC/ET_DYN, bad magic/class/type/machine,
  no phnum, truncated, null

test_security.c (19→38):
- Signal mask: valid excludes KILL/STOP, includes USR1,
  pending&blocked, deliverable/blocked, KILL/STOP always deliverable
- chmod symbolic: u+x, go-w, a+x, a=rw, u+s, g+s, +t, o-x,
  u=rw,go=r, no-change

gdb_checks.py (6→10):
- Process table PID 1 state check
- Scheduler active runqueue bitmap
- Mount table count
- Frame 0 refcount

Test results: 63/63 + 38/38 + 111/111 = 212 host PASS
tests/gdb_checks.py
tests/test_security.c
tests/test_utils.c