diff --git a/src/cmd/ksh93/tests/sh_match.sh b/src/cmd/ksh93/tests/sh_match.sh index 9ae183ad007a..7e56332e5d2f 100755 --- a/src/cmd/ksh93/tests/sh_match.sh +++ b/src/cmd/ksh93/tests/sh_match.sh @@ -52,10 +52,11 @@ function test_xmlfragment1 typeset -r testscript='test1_script.sh' cat >"${testscript}" <<-TEST1SCRIPT - # memory safeguards to prevent out-of-control memory consumption - ulimit -M \$(( 1024 * 1024 )) - ulimit -v \$(( 1024 * 1024 )) - ulimit -d \$(( 1024 * 1024 )) + # Put safeguards to prevent out-of-control memory consumption. + # Ignore "read only" error if a limit is not supported. + ulimit -M \$(( 1024 * 1024 )) 2>/dev/null + ulimit -v \$(( 1024 * 1024 )) 2>/dev/null + ulimit -d \$(( 1024 * 1024 )) 2>/dev/null # input text xmltext="\$( < "\$1" )"