1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-08 11:36:03 +01:00

Merge pull request #14288 from lovesegfault/repl-skip-stack

fix(tests/functional/repl): skip test if stack size limit is insufficient
This commit is contained in:
John Ericson 2025-10-17 17:35:52 +00:00 committed by GitHub
commit ad2360c59f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,6 +25,13 @@ import $testDir/undefined-variable.nix
TODO_NixOS
# FIXME: repl tests fail on systems with stack limits
stack_ulimit="$(ulimit -Hs)"
stack_required="$((64 * 1024 * 1024))"
if [[ "$stack_ulimit" != "unlimited" ]]; then
((stack_ulimit < stack_required)) && skipTest "repl tests cannot run on systems with stack size <$stack_required ($stack_ulimit)"
fi
testRepl () {
local nixArgs
nixArgs=("$@")