Searched defs:err_exit (Results 1 - 25 of 53) sorted by relevance

123

/ast/src/cmd/ksh93/tests/
H A Dalias.sh20 function err_exit function
26 alias err_exit='err_exit $LINENO'
31 tmp=$(mktemp -dt) || { err_exit mktemp -dt failed; exit 1; }
36 then err_exit 'foo, where foo is alias for "print hello" failed'
39 then err_exit 'foo world, where foo is alias for "print hello" failed'
44 then err_exit 'foo bar, where foo is alias for "print hello " failed'
47 then err_exit 'foo \bar, where foo is alias for "print hello " failed'
51 then err_exit 'bar, where bar is alias for "foo world" failed'
54 then err_exit 'alia
[all...]
H A Dappend.sh20 function err_exit function
26 alias err_exit='err_exit $LINENO'
34 then err_exit 'abc+def != abcdef'
39 then err_exit '3+4!=7'
44 then err_exit 'index array append fails'
50 then err_exit 'index array append to scalar fails'
56 then err_exit 'associative array append fails'
59 then err_exit 'number of elements of associative array append fails'
64 then err_exit 'compoun
[all...]
H A Dbracket.sh20 function err_exit function
26 alias err_exit='err_exit $LINENO'
31 tmp=$(mktemp -dt) || { err_exit mktemp -dt failed; exit 1; }
36 then err_exit "-z: null string should be of zero length"
41 then err_exit "-z: $file string should not be of zero length"
44 then err_exit "-a: $file shouldn't exist"
47 then err_exit "-e: $file shouldn't exist"
51 then err_exit "-a: $file should exist"
54 then err_exit "
[all...]
H A Dcase.sh20 function err_exit function
26 alias err_exit='err_exit $LINENO'
46 then err_exit "$i not matching correct pattern"
52 *) err_exit "$f does not match \[*\]";;
62 then err_exit 'case abc {...} not working'
67 esac') != b ]] && err_exit 'bug in ;& at end of script'
80 ') == foo.h ]] || err_exit "optimizer bug"
83 [[ $x == 1 ]] || err_exit 'set -e ignored on case fail through'
H A Denum.sh20 function err_exit function
26 alias err_exit='err_exit $LINENO'
35 [[ $x == red ]] || err_exit 'Color_t does not default to red'
37 [[ $x == orange ]] || err_exit '$x should be orange'
38 ( x=violet) 2> /dev/null && err_exit 'x=violet should fail'
40 [[ ${x[2]} == green ]] || err_exit '${x[2]} should be green'
41 (( x[2] == 1 )) || err_exit '((x[2]!=1))'
42 [[ $((x[2])) == 1 ]] || err_exit '$((x[2]))!=1'
43 [[ $x == orange ]] || err_exit '
[all...]
H A Dexpand.sh20 function err_exit function
106 [[ $got == $expected ]] || err_exit "'$pattern' failed -- expected '$expected' got '$got'"
112 [[ $# == 1 && $1 == /dev/null ]] || err_exit "~(N)/dev/null not matching /dev/null"
114 [[ $# == 0 ]] || err_exit "~(N)/dev/nonexistant not empty"
116 [[ $# == 1 && ! $1 ]] || err_exit '""~(N)/dev/nonexistant not null argument'
118 [[ $# == 1 && ! $1 ]] || err_exit '~(N)/dev/nonexistent"" not null argument'
120 do err_exit "~(N)/dev/non_existent_file in for loop is $i"
123 do [[ ! $i ]] || err_exit '""~(N)/dev/non_existent_file not null'
H A Dquoting.sh20 function err_exit function
26 alias err_exit='err_exit $LINENO'
31 then err_exit "single quotes not the same as double quotes"
35 then err_exit "$x not the same as 'hi there'"
38 then err_exit "$x not the same as \"hi there \""
41 then err_exit " \\ differs from '' "
44 then err_exit " \"\" differs from '' "
47 then err_exit "\$(print -r - '') differs from ''"
50 then err_exit "\
[all...]
H A Dquoting2.sh20 function err_exit function
26 alias err_exit='err_exit $LINENO'
32 then err_exit "single quotes not the same as double quotes"
36 then err_exit "$x not the same as 'hi there'"
39 then err_exit "$x not the same as \"hi there \""
42 then err_exit " \\ differs from '' "
45 then err_exit " \"\" differs from '' "
48 then err_exit "\$(print -r - '') differs from ''"
51 then err_exit "\
[all...]
H A Dreadcsv.sh20 function err_exit function
26 alias err_exit='err_exit $LINENO'
31 tmp=$(mktemp -dt) || { err_exit mktemp -dt failed; exit 1; }
52 then ((nfields==10)) || err_exit 'first record should contain 10 fields'
53 [[ ${arr[7]} == $'New Inter""State\nTerm' ]] || err_exit $'7th field of record 1 should contain New Inter""State\nTerm'
67 diff "$tmp1" "$tmp2" >/dev/null 2>&1 || err_exit "files $tmp1 and $tmp2 differ"
H A Dselect.sh20 function err_exit function
26 alias err_exit='err_exit $LINENO'
31 tmp=$(mktemp -dt) || { err_exit mktemp -dt failed; exit 1; }
45 *) err_exit "select 1 not working"
55 foo) err_exit "select foo not working" 2>&3
58 then err_exit "select REPLY not correct" 2>&3
60 ( set -u; : $i ) || err_exit "select: i not set to null" 2>&3
H A Dsigchld.sh20 function err_exit function
27 alias err_exit='err_exit $LINENO'
58 ') || err_exit "test loop failed"
62 (( foreground == FOREGROUND )) || err_exit "expected '$FOREGROUND foreground' -- got '$foreground' (DELAY=$DELAY)"
63 (( background == BACKGROUND )) || err_exit "expected '$BACKGROUND background' -- got '$background' (DELAY=$DELAY)"
85 [[ $got == $exp ]] || err_exit "SIGCHLD trap queueing failed -- expected '$exp', got '$got'"
109 [[ $got == $exp ]] || err_exit "SIGCHLD trap queueing failed -- expected $(printf %q "$exp"), got $(printf %q "$got")"
117 [[ $got == good ]] || err_exit 'SIGCLD handler effects read behavior'
130 then err_exit "CHL
[all...]
H A Dexit.sh20 function err_exit function
26 alias err_exit='err_exit $LINENO'
31 tmp=$(mktemp -dt) || { err_exit mktemp -dt failed; exit 1; }
45 cd $tmp || { err_exit "cd $tmp failed"; exit 1; }
63 then err_exit 'exit in .profile is ignored'
65 then err_exit 'privileged .profile not ignored'
68 then err_exit 'exit not setting $?'
75 then err_exit 'subshell trap on exit overwrites parent trap'
77 cd ~- || err_exit "c
[all...]
H A Dgrep.sh20 function err_exit function
26 alias err_exit='err_exit $LINENO'
31 tmp=$(mktemp -dt) || { err_exit mktemp -dt failed; exit 1; }
102 then err_exit
H A Dleaks.sh22 function err_exit function
28 alias err_exit='err_exit $LINENO'
58 then err_exit "variable value reset memory leak -- $((b-a)) bytes after $n iterations"
65 [[ $got == $exp ]] || err_exit "large command substitution failed -- expected $exp, got $got"
77 (( b > a )) && err_exit 'memory leak with read -C when deleting compound variable'
85 (( b > a )) && err_exit 'memory leak with read -C when using <<<'
H A Dlocale.sh20 function err_exit function
26 alias err_exit='err_exit $LINENO'
33 tmp=$(mktemp -dt) || { err_exit mktemp -dt failed; exit 1; }
39 [[ "$b" == "$a" ]] || err_exit "locale not restored after subshell -- expected '$a', got '$b'"
41 [[ "$b" == "$a" ]] || err_exit "locale not restored after subshell -- expected '$a', got '$b'"
54 [[ $b == "$n" ]] || err_exit "LC_ALL=$locale printf difference for \"$s\" -- expected '$n', got '$b'"
57 [[ $u == "$q" ]] || err_exit "LC_ALL=$locale quoted print difference for \"$s\" -- $b => '$u' vs \"$b\" => '$q'"
96 [[ "$u" == "$x" ]] || err_exit LC_ALL=$locale multibyte value/trace format failed
100 [[ $u == $x ]] || err_exit LC_AL
[all...]
H A Doptions.sh20 function err_exit function
26 alias err_exit='err_exit $LINENO'
36 tmp=$(mktemp -dt) || { err_exit mktemp -dt failed; exit 1; }
43 then err_exit "${SHELL-ksh} -s not working"
51 then err_exit 'sh -e not working'
53 [[ $($SHELL -D -c 'print hi; print $"hello"') == '"hello"' ]] || err_exit 'ksh -D not working'
67 err_exit "\$ENV file &>/dev/null does not redirect stdout -- expected '', got $got"
73 err_exit "\$ENV file &>/dev/null does not redirect stderr -- expected one diagnostic line, got $got"
81 err_exit 'privilege
[all...]
H A Dpointtype.sh20 function err_exit function
26 alias err_exit='err_exit $LINENO'
43 [[ ${p.x} == 1 ]] || err_exit '${p[x]} is not 1'
45 [[ $(p.len) == 1 ]] || err_exit '$(p.len) != 1'
46 [[ ${p.len} == 1 ]] || err_exit '${p.len} != 1'
47 (( p.len == 1 )) || err_exit '((p.len != 1))'
49 (( q.x == 1 )) || err_exit 'q.x is not 1'
50 (( (q.len - sqrt(5)) < 10e-10 )) || err_exit 'q.len != sqrt(5)'
55 (( q.len == 3 )) || err_exit '
[all...]
H A Dpty.sh25 function err_exit function
32 alias err_exit='err_exit $lineno'
37 whence -q pty || { lineno=$LINENO; err_exit "pty command not found -- tests skipped"; exit 0; }
53 [[ $x == *Stop* ]] && err_exit 'monitor mode enabled incorrectly causes job to stop'
70 err_exit "${text/: line $offset:/: line $(( lineno + offset)):}"
78 then err_exit pty command hangs on $bintrue -- tests skipped
82 # err_exit #
105 # err_exit #
128 # err_exit #
[all...]
H A Drestricted.sh20 function err_exit function
26 alias err_exit='err_exit $LINENO'
31 tmp=$(mktemp -dt) || { err_exit mktemp -dt failed; exit 1; }
49 cd $tmp || err_exit "cd $tmp failed"
52 rksh -c '[[ -o restricted ]]' || err_exit 'restricted option not set'
53 [[ $(rksh -c 'print hello') == hello ]] || err_exit 'unable to run print'
54 check_restricted /bin/echo || err_exit '/bin/echo not resticted'
55 check_restricted ./echo || err_exit './echo not resticted'
56 check_restricted 'SHELL=ksh' || err_exit 'SHEL
[all...]
H A Dtilde.sh20 function err_exit function
26 alias err_exit='err_exit $LINENO'
31 tmp=$(mktemp -dt) || { err_exit mktemp -dt failed; exit 1; }
36 [[ $x == ~root ]] || err_exit '~user expanded in subshell prevent ~user from working'
52 then err_exit '~' not $HOME
56 then err_exit x=~ not $HOME
60 then err_exit x=x:~ not x:$HOME
63 then err_exit '~' not $PWD
67 then err_exit
[all...]
H A Darrays.sh20 function err_exit function
26 alias err_exit='err_exit $LINENO'
31 tmp=$(mktemp -dt) || { err_exit mktemp -dt failed; exit 1; }
45 then err_exit '$x is not element 0'
48 then err_exit '${x[0] is not element 0'
51 then err_exit "length of ${x[0]} is not 4"
54 then err_exit 'number of elements of x is not 6'
57 then err_exit ' element two is not 2'
60 then err_exit '
[all...]
H A Darrays2.sh20 function err_exit function
26 alias err_exit='err_exit $LINENO'
37 do [[ ${a[i][j]} == "$i$j" ]] || err_exit "\${a[$i][$j]} != $i$j"
42 do [[ $k == "$i$j" ]] || err_exit "\${a[i][@]} != $i$j"
62 do [[ ${a[$i][$j]} == "$i$j" ]] || err_exit "\${$c[$i][$j]} != $i$j"
65 (( ${#a[@]} == 4 )) || err_exit "\${#$c[@]} not 4"
66 (( ${#a[0][@]} == 5 )) || err_exit "\${#$c[0][@]} not 5"
67 (( ${#a[1][@]} == 6 )) || err_exit "\${#$c[1][@]} not 6"
69 [[ ${@} == '0 1 2 3' ]] || err_exit "\
[all...]
H A Dattributes.sh20 function err_exit function
26 alias err_exit='err_exit $LINENO'
31 tmp=$(mktemp -dt) || { err_exit mktemp -dt failed; exit 1; }
39 (r=newval) 2> /dev/null && err_exit readonly attribute fails
42 then err_exit integer attributes fails
45 then err_exit integer base 8 fails
48 then err_exit uppercase fails
51 then err_exit lowercase fails
54 then err_exit referenc
[all...]
/ast/src/cmd/std/
H A Dseq.sh60 function err_exit function
88 [[ $fmt == *%*([^[:space:][:alpha:]])[efg]* ]] || err_exit "$fmt: invalid format string"
101 0) err_exit "too few arguments";;
102 *) err_exit "too many arguments";;
105 then [[ $fmt ]] && err_exit "format string may not be specified when printing equal width strings"
/ast/src/cmd/3d/
H A Dopaque.sh27 function err_exit function
63 [[ $dir -ef . ]] || cd "$dir" || err_exit "$dir: cd failed"
69 > .../... || err_exit "$i: cannot opaque"
72 then err_exit "...: cannot mkdir"
74 then err_exit "...: obsolescent opaque must be 0 mode file"
75 else mkdir ...3d || err_exit "...3d: cannot mkdir"
81 err_exit "...: cannot rename obsolescent opaque"
84 err_exit "...: cannot rename obsolescent opaque"
89 > .../... || err_exit "$i: cannot opaque"
94 [[ $dir -ef . ]] || cd ~- || err_exit "
[all...]

Completed in 15 milliseconds

123