summaryrefslogtreecommitdiffstats
path: root/tests.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2019-04-20 13:57:41 -0400
committerTavian Barnes <tavianator@tavianator.com>2019-04-20 13:57:41 -0400
commit472c0ea017f1e31bfdd8016ec30b42dab1d41fdb (patch)
treec8ddf014aee21dc162db4f1d46adf136ebccdcf3 /tests.sh
parent4eeae2264cf32e67a0aac46293752251328e2745 (diff)
downloadbfs-472c0ea017f1e31bfdd8016ec30b42dab1d41fdb.tar.xz
tests: Add a test with -printf %H and multiple roots
To make sure we're keeping track of different root paths correctly
Diffstat (limited to 'tests.sh')
-rwxr-xr-xtests.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests.sh b/tests.sh
index a4068d6..11c1057 100755
--- a/tests.sh
+++ b/tests.sh
@@ -481,6 +481,7 @@ gnu_tests=(
test_printf_leak
test_printf_nul
test_printf_Y_error
+ test_printf_H
test_quit
test_quit_child
@@ -1789,6 +1790,10 @@ function test_printf_Y_error() {
[ $ret -eq $EX_BFS ]
}
+function test_printf_H() {
+ bfs_diff basic links -printf '%%p(%p) %%d(%d) %%f(%f) %%h(%h) %%H(%H) %%P(%P) %%m(%m) %%M(%M) %%y(%y)\n'
+}
+
function test_fstype() {
fstype="$(invoke_bfs basic -maxdepth 0 -printf '%F\n')"
bfs_diff basic -fstype "$fstype"