From d03c58ef1cc8aa932b4f652dea14f762716bc02a Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 11 Mar 2017 11:18:05 -0500 Subject: Implement -printf %Ak, %Ck, and %Tk --- tests.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests.sh') diff --git a/tests.sh b/tests.sh index f991823..46fcc52 100755 --- a/tests.sh +++ b/tests.sh @@ -283,9 +283,10 @@ gnu_tests=( test_printf_flags test_printf_types test_printf_escapes + test_printf_times + test_printf_leak test_quit_after_print test_quit_before_print - test_printf_leak test_not test_and test_or @@ -974,6 +975,10 @@ function test_printf_escapes() { bfs_diff basic -maxdepth 0 -printf '\18\118\1118\11118\n\cfoo' } +function test_printf_times() { + TZ=UTC bfs_diff times -type f -printf '%p | %a %AY-%Am-%Ad %AH:%AI:%AS %T@ | %t %TY-%Tm-%Td %TH:%TI:%TS %T@\n' +} + function test_printf_leak() { # Memory leak regression test bfs_diff basic -maxdepth 0 -printf '%p' -- cgit v1.2.3