From a3c1c3ed54d9d595feb1df38e775af3d6ff9facd Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 5 May 2019 23:16:01 -0400 Subject: color: Don't stat() if we don't need to --- tests.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tests.sh') diff --git a/tests.sh b/tests.sh index 8716639..b9d0a89 100755 --- a/tests.sh +++ b/tests.sh @@ -610,6 +610,8 @@ bfs_tests=( test_color_ext_override test_color_ext_underride test_color_missing_colon + test_color_no_stat + test_color_L_no_stat test_execdir_plus @@ -2056,6 +2058,14 @@ function test_color_missing_colon() { LS_COLORS="*.txt=01" bfs_diff rainbow -color } +function test_color_no_stat() { + LS_COLORS="mh=0:ex=0:sg=0:su=0:st=0:ow=0:tw=0:*.txt=01:" bfs_diff rainbow -color +} + +function test_color_L_no_stat() { + LS_COLORS="mh=0:ex=0:sg=0:su=0:st=0:ow=0:tw=0:*.txt=01:" bfs_diff -L rainbow -color +} + function test_deep() { closefrom 4 -- cgit v1.2.3