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

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

bfs_diff scratch -xdev
ret=$?

sudo umount scratch/mnt
return $ret