summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2017-07-18 15:24:17 -0400
committerTavian Barnes <tavianator@tavianator.com>2017-07-18 15:24:17 -0400
commita5b69d224074842da9f2f55fd82e400f6b62ad16 (patch)
tree7c0f3038f236049605c7d302872dda1402c5dab2
parentdfa5bbfa84f8177234e8ba46dd5596a8d0e1a0c4 (diff)
downloadbfs-a5b69d224074842da9f2f55fd82e400f6b62ad16.tar.xz
tests.sh: Make closefrom() behave like its namesake
-rwxr-xr-xtests.sh6
1 files changed, 3 insertions, 3 deletions
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