test code v1

This commit is contained in:
2026-08-13 10:44:59 +02:00
commit f3b1165f19
301 changed files with 37885 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
# Test Case: Vnode Pager Real Faults
**Test ID**: TC149-vnode-pager-real-faults
**Category**: VM Integration
**Priority**: Critical
## Objective
Exercise real sequential/randomized mmap faults, partial and full pages around
EOF, read-only shared mappings, and private COW on plain and LZ4 EROFS data.
## Procedure
On separate fresh mounts of vfs/vfs-plain.erofs and vfs/vfs-lz4.erofs:
./mmap_fault /tmp/repo22-g3/mnt/pager.bin
## Expected Results
Both runs print the same 21211-byte logical FNV hash and pass six random page
faults, sequential comparison, EOF zeroing, expected child SIGBUS, EACCES for
writable MAP_SHARED, private COW, and EROFS for O_RDWR. The expected child
SIGBUS dmesg line is evidence, not a kernel failure. Record hashes and cleanup.