diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2019-04-20 13:57:41 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2019-04-20 13:57:41 -0400 |
commit | 472c0ea017f1e31bfdd8016ec30b42dab1d41fdb (patch) | |
tree | c8ddf014aee21dc162db4f1d46adf136ebccdcf3 /tests.sh | |
parent | 4eeae2264cf32e67a0aac46293752251328e2745 (diff) | |
download | bfs-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-x | tests.sh | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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" |