summaryrefslogtreecommitdiffstats
path: root/tests/common
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-02-01 16:14:19 -0500
committerTavian Barnes <tavianator@tavianator.com>2024-02-01 16:33:18 -0500
commitc4334184502c25a41b5cab060681229b2b570c0a (patch)
tree3db277045e38a35a375f41900cb1dbffeed1b39a /tests/common
parentf8b22f20147d872aef9fa1037139c39e4dd0e687 (diff)
downloadbfs-c4334184502c25a41b5cab060681229b2b570c0a.tar.xz
tests: Don't clobber inherited FDs
Rather than attempting to close any unexpected FDs, just count them and adjust our ulimit -n calls to account for them.
Diffstat (limited to 'tests/common')
-rw-r--r--tests/common/execdir_ulimit.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/common/execdir_ulimit.sh b/tests/common/execdir_ulimit.sh
index 90c93c1..122c282 100644
--- a/tests/common/execdir_ulimit.sh
+++ b/tests/common/execdir_ulimit.sh
@@ -2,5 +2,5 @@ cd "$TEST"
mkdir -p a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z
mkdir -p a/b/c/d/e/f/g/h/i/j/k/l/m/0/1/2/3/4/5/6/7/8/9/A/B/C
-ulimit -n 13
+ulimit -n $((NOPENFD + 10))
bfs_diff . -execdir echo {} \;