This commit is contained in:
2026-08-18 09:20:44 +02:00
commit b826cd721a
522 changed files with 93730 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
# Test Case: Lookup - Missing Entry
**Test ID**: TC044-lookup-not-found
**Category**: Directory Operations
**Priority**: High
## Objective
Verify direct missing lookups return exact ENOENT without masking existing
entries or turning other errors into a miss.
## Procedure
Mount vfs/vfs-plain.erofs and run:
./g3_vfs_probe expect-error stat \
/tmp/repo22-g3/mnt/testdir/nonexistent.txt 2
./g3_vfs_probe expect-error stat \
/tmp/repo22-g3/mnt/testdir/nonexistent.txt 2
./g3_vfs_probe expect-error stat \
/tmp/repo22-g3/mnt/no-such-directory/file.txt 2
./g3_vfs_probe expect-success stat \
/tmp/repo22-g3/mnt/testdir/file.txt
## Expected Results
Each missing syscall reports errno 2 and the positive control succeeds.
Wrapper text alone is not evidence; record the helper output and cleanup.