From 7b1c49bca18986e94d358d8ebb069dc01470be15 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Fri, 14 Feb 2020 14:40:23 -0500 Subject: eval: Irregular files aren't empty GNU find's -empty returns false for devices, sockets, etc., even though their st_size is 0. Match that behaviour. --- tests.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests.sh') diff --git a/tests.sh b/tests.sh index d1c5413..2a52049 100755 --- a/tests.sh +++ b/tests.sh @@ -432,7 +432,7 @@ gnu_tests=( test_depth_maxdepth_2 test_empty - + test_empty_special test_exec_nothing test_exec_substring @@ -1106,6 +1106,10 @@ function test_empty() { bfs_diff basic -empty } +function test_empty_special() { + bfs_diff rainbow -empty +} + function test_gid() { bfs_diff basic -gid "$(id -g)" } -- cgit v1.2.3