summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2019-05-09 08:33:34 -0400
committerTavian Barnes <tavianator@tavianator.com>2019-05-09 08:33:34 -0400
commit820735a85dbc2c9d19e948ea37945306ed7bc997 (patch)
tree61278c543f4629ae049e409c1990c5a9865ef6be /tests
parent50d395b356b3ffc73ab97101c5434bda06141cc4 (diff)
downloadbfs-820735a85dbc2c9d19e948ea37945306ed7bc997.tar.xz
tests: Add some more --sudo tests
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=912180#17 pointed out that d_ino is not trustworthy on mount points either. Make sure we don't use it.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_inum_bind_mount.out2
-rw-r--r--tests/test_inum_mount.out1
-rw-r--r--tests/test_xtype_bind_mount.out2
3 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_inum_bind_mount.out b/tests/test_inum_bind_mount.out
new file mode 100644
index 0000000..a520de3
--- /dev/null
+++ b/tests/test_inum_bind_mount.out
@@ -0,0 +1,2 @@
+scratch/bar
+scratch/foo
diff --git a/tests/test_inum_mount.out b/tests/test_inum_mount.out
new file mode 100644
index 0000000..99c7511
--- /dev/null
+++ b/tests/test_inum_mount.out
@@ -0,0 +1 @@
+scratch/mnt
diff --git a/tests/test_xtype_bind_mount.out b/tests/test_xtype_bind_mount.out
new file mode 100644
index 0000000..16804ea
--- /dev/null
+++ b/tests/test_xtype_bind_mount.out
@@ -0,0 +1,2 @@
+scratch/link
+scratch/null