Skip to content

Commit 74fd7b3

Browse files
jimmodpgeorge
authored andcommitted
tools/ci.sh: Set ulimit -n for unix CI.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
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

Lines changed: 2 additions & 1 deletion
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

Lines changed: 3 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy