Skip to content

Commit 74fd7b3

Browse files
jimmodpgeorge
authored andcommitted
tools/ci.sh: Set ulimit -n for unix CI.
Signed-off-by: Jim Mussared <[email protected]>
1 parent 8b24aa3 commit 74fd7b3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

tests/extmod/select_poll_fd.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
print(poller.poll(0))
3636

3737
# Test registering a very large number of file descriptors (will trigger
38-
# EINVAL due to more than OPEN_MAX fds).
38+
# EINVAL due to more than OPEN_MAX fds). Typically it's 1024 (and on GitHub CI
39+
# we force this via `ulimit -n 1024`).
3940
poller = select.poll()
4041
for fd in range(6000):
4142
poller.register(fd)

tools/ci.sh

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ else
66
MAKEOPTS="-j$(sysctl -n hw.ncpu)"
77
fi
88

9+
# Ensure known OPEN_MAX (NO_FILES) limit.
10+
ulimit -n 1024
11+
912
########################################################################################
1013
# general helper functions
1114

0 commit comments

Comments
 (0)