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

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

bfs_diff -L scratch -xdev
ret=$?

sudo umount scratch/mnt
return $ret