summaryrefslogtreecommitdiffstats
path: root/tests/gnu/fstype_umount.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gnu/fstype_umount.sh')
-rw-r--r--tests/gnu/fstype_umount.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/gnu/fstype_umount.sh b/tests/gnu/fstype_umount.sh
new file mode 100644
index 0000000..81c195f
--- /dev/null
+++ b/tests/gnu/fstype_umount.sh
@@ -0,0 +1,12 @@
+test "$UNAME" = "Linux" || skip
+
+cd "$TEST"
+
+mkdir tmp
+bfs_sudo mount -t tmpfs tmpfs tmp || skip
+defer bfs_sudo umount -R tmp
+
+mkdir tmp/ram
+bfs_sudo mount -t ramfs ramfs tmp/ram || skip
+
+bfs_diff tmp -path tmp -exec "${SUDO[@]}" umount tmp/ram \; , -fstype ramfs -print