From a5b69d224074842da9f2f55fd82e400f6b62ad16 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 18 Jul 2017 15:24:17 -0400 Subject: tests.sh: Make closefrom() behave like its namesake --- tests.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests.sh') diff --git a/tests.sh b/tests.sh index 9f95117..a2b1681 100755 --- a/tests.sh +++ b/tests.sh @@ -440,7 +440,7 @@ function closefrom() { fi fd="${fd##*/}" - if [ "$fd" -gt "$1" ]; then + if [ "$fd" -ge "$1" ]; then eval "exec ${fd}<&-" fi done @@ -1173,14 +1173,14 @@ function test_colors() { } function test_deep() { - closefrom 2 + closefrom 3 ulimit -n 8 bfs_diff deep -mindepth 18 } function test_deep_strict() { - closefrom 2 + closefrom 3 # Not even enough fds to keep the root open ulimit -n 6 -- cgit v1.2.3