Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions tests/symlink/03.t
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,23 @@ nx=`dirgen_max`
nxx="${nx}x"

mkdir -p "${nx%/*}"

# On XFS, symlink targets are limited to 1024 bytes (vs PATH_MAX 4096).
case "$fs" in
xfs|XFS)
todo Linux "XFS symlink target limit (1024) is smaller than PATH_MAX"
;;
esac
expect 0 symlink ${nx} ${n0}

# Cleanup (unlink) will fail with ENOENT if the creation step above failed.
case "$fs" in
xfs|XFS)
todo Linux "Cleanup fails because symlink creation failed on XFS"
;;
esac
expect 0 unlink ${n0}

expect 0 symlink ${n0} ${nx}
expect 0 unlink ${nx}
expect ENAMETOOLONG symlink ${n0} ${nxx}
Expand Down