diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2017-07-18 15:24:17 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2017-07-18 15:24:17 -0400 |
commit | a5b69d224074842da9f2f55fd82e400f6b62ad16 (patch) | |
tree | 7c0f3038f236049605c7d302872dda1402c5dab2 /tests.sh | |
parent | dfa5bbfa84f8177234e8ba46dd5596a8d0e1a0c4 (diff) | |
download | bfs-a5b69d224074842da9f2f55fd82e400f6b62ad16.tar.xz |
tests.sh: Make closefrom() behave like its namesake
Diffstat (limited to 'tests.sh')
-rwxr-xr-x | tests.sh | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |