summaryrefslogtreecommitdiffstats
path: root/tests/posix/L_xdev.sh
blob: 587c8bbe969cad592e74a023e8f4993fdd1b09c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
test "$SUDO" || skip
test "$UNAME" = "Darwin" && skip

clean_scratch
mkdir scratch/{foo,mnt}

sudo mount -t tmpfs tmpfs scratch/mnt
trap "sudo umount scratch/mnt" EXIT

ln -s ../mnt scratch/foo/bar
"$XTOUCH" scratch/mnt/baz
ln -s ../mnt/baz scratch/foo/qux

bfs_diff -L scratch -xdev