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
+24
View File
@@ -0,0 +1,24 @@
# Test Case: chmod Rejection
**Test ID**: TC061-setattr-chmod-reject
**Category**: Read-Only Enforcement
**Priority**: Critical
## Objective
Verify a direct chmod request returns EROFS and leaves metadata unchanged.
## Procedure
Mount vfs/vfs-plain.erofs and run:
./g3_vfs_probe stat /tmp/repo22-g3/mnt/testdir/file.txt > TC061-before.txt
./g3_vfs_probe expect-error chmod \
/tmp/repo22-g3/mnt/testdir/file.txt 30
./g3_vfs_probe stat /tmp/repo22-g3/mnt/testdir/file.txt > TC061-after.txt
cmp TC061-before.txt TC061-after.txt
## Expected Results
chmod reports errno 30 and complete metadata remains unchanged. Record output,
fixture hash, and cleanup.