summaryrefslogtreecommitdiffstats
path: root/tests/gnu/xtype_bind_mount.sh
blob: 9babd9dc75e86eceb5defe8e4bea9d3fc69a17c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
test "$SUDO" || skip
test "$UNAME" = "Linux" || skip

clean_scratch
"$XTOUCH" scratch/{file,null}
ln -s /dev/null scratch/link

sudo mount --bind /dev/null scratch/null
trap "sudo umount scratch/null" EXIT

bfs_diff -L scratch -type c