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

rm -rf scratch/*
$TOUCH scratch/{file,null}
sudo mount --bind /dev/null scratch/null
ln -s /dev/null scratch/link

bfs_diff -L scratch -type c
ret=$?

sudo umount scratch/null
return $ret