Files
erofs-freebsd-out-tree/tests/TC049-dot-handling.md
T
2026-08-18 09:20:44 +02:00

738 B

Test Case: Dot Entry Handling

Test ID: TC049-dot-handling Category: Directory Operations Priority: High

Objective

Verify dot is returned as a directory entry and explicit dot lookup resolves to the same vnode as its directory.

Procedure

Mount vfs/vfs-plain.erofs and run:

./readdir_probe /tmp/repo22-g3/mnt/testdir 128
stat -f '%i %HT' /tmp/repo22-g3/mnt/testdir
stat -f '%i %HT' /tmp/repo22-g3/mnt/testdir/.
cmp fixtures/vfs/source/testdir/file.txt \
  /tmp/repo22-g3/mnt/./testdir/./file.txt

Expected Results

The traversal includes one dot entry with DT_DIR, both stat commands report the same directory NID, and paths containing dot read source-exact data. Record output and cleanup.