Skip to content

Commit

Permalink
Ignore errors from ulimit in sh_match.sh
Browse files Browse the repository at this point in the history
Partial fix for #483
  • Loading branch information
kernigh authored and krader1961 committed Apr 28, 2018
1 parent f4a481b commit ef8d10e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/cmd/ksh93/tests/sh_match.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" )"
Expand Down

0 comments on commit ef8d10e

Please sign in to comment.