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

clean_scratch
mkdir scratch/{foo,mnt}
sudo mount -t tmpfs tmpfs scratch/mnt
ln -s ../mnt scratch/foo/bar
"$XTOUCH" scratch/mnt/baz
ln -s ../mnt/baz scratch/foo/qux

bfs_diff -L scratch -xdev
ret=$?

sudo umount scratch/mnt
return $ret