Execute a system command in a more safe context than Sys::system.

Property definitions

nitc :: testing_base $ ToolContext :: safe_exec
	# Execute a system command in a more safe context than `Sys::system`.
	fun safe_exec(command: String): Int
	do
		info(command, 2)
		var real_command = """
bash -c "
ulimit -f {{{ulimit_file}}} 2> /dev/null
ulimit -t {{{ulimit_usertime}}} 2> /dev/null
{{{command}}}
"
"""
		return system(real_command)
	end
src/testing/testing_base.nit:76,2--88,4