Lines Matching refs:err_exit

20 function err_exit
26 alias err_exit='err_exit $LINENO'
31 tmp=$(mktemp -dt) || { err_exit mktemp -dt failed; exit 1; }
75 [[ $(fn) == 'local fn bar' ]] || err_exit 'fn inside namespace should run local function'
76 [[ $(fun) == 'global fun abc' ]] || err_exit 'global fun run from namespace not working'
77 (( r == 9 )) || err_exit 'global variable r not set in namespace'
79 [[ ${z[qqq]} == abc ]] || err_exit 'local array element not correct'
80 [[ ${z[abc]} == '' ]] || err_exit 'global array element should not be visible when local element exists'
81 [[ ${bar.y} == 2 ]] || err_exit 'local variable bar.y not found'
82 [[ ${bar.t} == '' ]] || err_exit 'global bar.t should not be visible'
93 [[ $(runxrun) == 'xfun local bar' ]] || err_exit 'local function on FPATH failed'
94 [[ $(runrun $foo) == 'local prog bar' ]] || err_exit 'local binary on PATH failed'
96 [[ $(fn) == 'global fn abc' ]] || err_exit 'fn outside namespace should run global function'
97 [[ $(.x.fn) == 'local fn bar' ]] || err_exit 'namespace function called from global failed'
98 [[ ${z[abc]} == qqq ]] || err_exit 'global associative array should not be affected by definiton in namespace'
99 [[ ${bar.y} == 4 ]] || err_exit 'global compound variable should not be affected by definiton in namespace'
100 [[ ${bar.z} == '' ]] || err_exit 'global compound variable should not see elements in namespace'
101 [[ $(xfun) == 'xfun global abc' ]] || err_exit 'global function on FPATH failed'
102 [[ $(run $foo) == 'global prog abc' ]] || err_exit 'global binary on PATH failed'
104 [[ $(.x.runxrun) == 'xfun local bar' ]] || err_exit 'namespace function on FPATH failed'