From 472c0ea017f1e31bfdd8016ec30b42dab1d41fdb Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 20 Apr 2019 13:57:41 -0400 Subject: tests: Add a test with -printf %H and multiple roots To make sure we're keeping track of different root paths correctly --- tests.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests.sh') 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" -- cgit v1.2.3