Files
erofs-freebsd-out-tree/tests/TC044-lookup-not-found.md
T
2026-08-13 10:44:59 +02:00

29 lines
837 B
Markdown

# 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.