Lines Matching defs:err_exit

20 function err_exit
26 alias err_exit='err_exit $LINENO'
31 tmp=$(mktemp -dt) || { err_exit mktemp -dt failed; exit 1; }
47 [[ $r == "$s" ]] || err_exit 'r is not equal to s'
53 [[ $y == "$z" ]] || err_exit 'y is not equal to z'
55 [[ $y == "${s.y}" ]] || err_exit 'y is not equal to s.y'
58 [[ $www == "$z" ]] || err_exit 'www is not equal to z'
60 [[ ${s.x} == "${r.x}" ]] || err_exit 's.x is not equal to r.x'
67 [[ $x == "$y" ]] || err_exit "x is not equal to y with ${!x}"
70 [[ $y == "${r.y}" ]] || err_exit 'y is not equal to r.y'
73 [[ $y == "${r.y}" ]] || err_exit 'y is not equal to r.y again'
77 [[ $q == "$z" ]] || err_exit 'q is not equal to z'
80 [[ $z == "$y" ]] || err_exit 'value of z not preserved after subshell'
85 [[ $(typeset -p frame) == 'Frame_t frame=(typeset file;typeset lineno;)' ]] || err_exit 'empty fields in type not displayed'
92 [[ "${arr[@]}" == "${brr[@]}" ]] || err_exit 'arr is not brr'
95 [[ $zzz == "$y" ]] || err_exit 'zzz is not equal to y'
97 [[ $x == "$y" ]] || err_exit 'x is not equal to y'
100 [[ $r == "$z" ]] || err_exit 'r is not equal to z'
102 [[ $t == "$z" ]] || err_exit 't is not equal to z'
104 [[ "${crr[@]}" == "${brr[@]}" ]] || err_exit 'crr is not brr'
106 [[ "${arr[@]}" == "${brr[@]}" ]] || err_exit 'brr is not arr'
109 [[ ${brr[foo]} == 2 ]] || err_exit 'move an associative array element fails'
110 [[ ${brr[bar]} ]] && err_exit 'brr[bar] should be unset after move'
114 [[ ${x[1]} == c ]] || err_exit 'move an indexed array element fails'
115 [[ ${x[2]} ]] && err_exit 'x[2] should be unset after move'
123 [[ "$got" == "$expected" ]] || err_exit "typedefs in dot script failed -- expected '$expected', got '$got'"
133 [[ ${x.x} == foo ]] || err_exit 'x.x should be foo'
134 [[ ${x.y} == bam ]] || err_exit 'x.y should be bam'
135 [[ ${x.s} == ${x.x} ]] || err_exit 'x.s should be x.x'
138 [[ ${z.r.x} == foo ]] || err_exit 'z.r.x should be foo'
139 [[ ${z.r.y} == bam ]] || err_exit 'z.r.y should be bam'
140 [[ ${z.r.s} == ${z.r.x} ]] || err_exit 'z.r.s should be z.r.x'
145 { typeset -T xx=(typeset yy=zz) ;} 2>/dev/null && err_exit 'type redefinition should fail'
146 $SHELL 2> /dev/null <<- +++ || err_exit 'typedef with only f(){} fails'
154 $SHELL 2> /dev/null <<- +++ || err_exit 'unable to redefine f discipline function'
169 $SHELL 2> /dev/null <<- +++ && err_exit 'invalid discipline name should be an error'
191 [[ ${var.r} == "$r" ]] || err_exit 'var.r != r'
192 (( var.z == 5)) || err_exit 'var.z !=5'
193 [[ "$var" == *x=foobar* ]] || err_exit '$var does not contain x=foobar'
203 [[ "$got" == "$expected" ]] || err_exit "type '_' reference failed -- expected '$expected', got '$got'"
219 [[ "$got" == "$expected" ]] || err_exit "_.g where g is a function in type discipline method failed -- expected '$expected', got '$got'"
234 [[ "$got" == "$expected" ]] || err_exit "array assignment of subscripts in type discipline arithmetic failed -- expected '$expected', got '$got'"
255 err_exit "copy to associative array of types in function failed -- expected '$expected', got '$got'"
258 $SHELL > /dev/null <<- '+++++' || err_exit 'passing _ as nameref arg not working'
288 ) == "$expected" ]] 2> /dev/null || err_exit '_.a=(name=one) not expanding correctly'
297 ) == "$expected" ]] || err_exit 'empty field in definition does not expand correctly'
305 [[ ${foo.len} == 5 ]] || err_exit "discipline function len not working"
318 [[ $(do_benchmarks) == 5 ]] || err_exit 'scoping of nameref of type variables in arithmetic expressions not working'
346 [[ $(do_something x.foolist) == 5 ]] || err_exit 'subscripts not honored for arrays of type with disciplines'
359 [[ $x == "$expected" ]] || err_exit 'compound variable with array of types with no elements not working'
377 [[ $got == "$expected" ]] || err_exit 'types with arrays of types as members fails'