Lines Matching defs:err_exit
66 function err_exit
72 alias err_exit='err_exit $LINENO'
84 tmpdir="$(mktemp -t -d "test_sun_solaris_cr_6862121_shbinexec_kernel_module_defunct.XXXXXXXX")" || err_exit "Cannot create temporary directory"
86 cd "${tmpdir}" || { err_exit "cd ${tmpdir} failed." ; exit $((Errors)) ; }
98 /usr/bin/shcomp "script1.sh" "script1" || err_exit "shcomp failed with error=$?"
100 [[ -x "./script1" ]] || err_exit "Script script1 not executable"
101 out="$(/usr/bin/bash -c './script1 a b "c d"' 2>&1 )" || err_exit "Compiled script failed to execute, error=$?"
102 [[ "${out}" == $'hello\nargs=a\nargs=b\nargs=c d' ]] || err_exit "Expected xxx, got $(printf "%q\n" "$out")"
107 rmdir "${tmpdir}" || err_exit "Cannot remove temporary directory ${tmpdir}".