Lines Matching defs:err_exit
94 function err_exit
100 alias err_exit='err_exit $LINENO'
112 tmpdir="$(mktemp -t -d "test_sun_solaris_cr_6907460_EXIT_trap_handlers_are_sometimes_executed_twice.XXXXXXXX")" || err_exit "Cannot create temporary directory"
114 cd "${tmpdir}" || { err_exit "cd ${tmpdir} failed." ; exit $((Errors)) ; }
168 ${SHELL} ${vari.shell_options} "testscript.sh" >/dev/null 2>&1 || err_exit "${testname}: Unexpected error code $?"
175 err_exit "${testname}: File 'log' not found."
177 [[ "${out}" == $'TRAP A\nTRAP B' ]] || err_exit "${testname}: Expected \$'TRAP A\nTRAP B', got $(printf "%q\n" "${out}")"
206 ) | ${SHELL} >/dev/null 2>&1 || err_exit "Unexpected error code $?"
212 err_exit "File 'log' not found."
214 [[ "${out}" == $'TRAP A\nTRAP B' ]] || err_exit "Expected \$'TRAP A\nTRAP B', got $(printf "%q\n" "${out}")"
218 rmdir "${tmpdir}" || err_exit "Cannot remove temporary directory ${tmpdir}".