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

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

bfs_diff scratch -xdev
ret=$?

sudo umount scratch/mnt
return $ret