mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 02:13:56 +09:00
Meta: Increase max open file descriptors in WPT.sh
On some macs, the default maximum number of file descriptors is 256. This quickly makes the WPT runner run out of descriptors, so let's check the active value and increase the soft limit if necessary.
This commit is contained in:
parent
6a3c3ee291
commit
a9ef5b4924
Notes:
github-actions[bot]
2025-03-25 20:25:03 +00:00
Author: https://github.com/gmta
Commit: a9ef5b4924
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4089
1 changed files with 5 additions and 0 deletions
|
@ -184,6 +184,11 @@ update_wpt() {
|
|||
}
|
||||
|
||||
execute_wpt() {
|
||||
# Ensure open files limit is at least 1024, so the WPT runner does not run out of descriptors
|
||||
if [ "$(ulimit -n)" -lt 1024 ]; then
|
||||
ulimit -S -n 1024
|
||||
fi
|
||||
|
||||
pushd "${WPT_SOURCE_DIR}" > /dev/null
|
||||
for certificate_path in "${WPT_CERTIFICATES[@]}"; do
|
||||
if [ ! -f "${certificate_path}" ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue