test code v1
This commit is contained in:
@@ -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.
|
||||
Reference in New Issue
Block a user