Searched refs:got (Results 1 - 25 of 29) sorted by relevance

12

/ast/src/cmd/ksh93/tests/
H A Dsigchld.sh62 (( foreground == FOREGROUND )) || err_exit "expected '$FOREGROUND foreground' -- got '$foreground' (DELAY=$DELAY)"
63 (( background == BACKGROUND )) || err_exit "expected '$BACKGROUND background' -- got '$background' (DELAY=$DELAY)"
71 got=$($SHELL -c '
85 [[ $got == $exp ]] || err_exit "SIGCHLD trap queueing failed -- expected '$exp', got '$got'"
87 got=$($SHELL -c '
109 [[ $got == $exp ]] || err_exit "SIGCHLD trap queueing failed -- expected $(printf %q "$exp"), got $(printf %q "$got")"
[all...]
H A Dlocale.sh39 [[ "$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'"
120 got=$*
121 [[ $got == $exp ]] || err_exit "command wc LC_ALL default failed -- expected '$exp', got '$got'"
134 got=$*
135 [[ $got == $exp ]] || err_exit "builtin wc LC_ALL default failed -- expected '$exp', got '
[all...]
H A Dexpand.sh105 got=$(eval print -r -- "$pattern")
106 [[ $got == $expected ]] || err_exit "'$pattern' failed -- expected '$expected' got '$got'"
107 #print -r -- " '$pattern' '$got' \\"
H A Dcubetype.sh57 exp=3 got=${b.x}
58 [[ "$got" == "$exp" ]] || err_exit "\${b.x} incorrect for iteration $i -- expected $exp, got '$got'"
59 exp=5 got=$(( b.len ))
60 (( got == exp )) || err_exit "b.len incorrect for iteration $i -- expected $exp, got '$got = sqrt(${b.x}*${b.x}+${b.y}*${b.y})'"
61 exp=5 got=${b.len}
62 [[ "$got"
[all...]
H A Dpath.sh169 got=$($SHELL -c "unset FPATH; PATH=/dev/null; $cmd" 2>&1)
170 [[ $got == $exp ]] && err_exit "$cmd as last command should not find ./$cmd with PATH=/dev/null"
171 got=$($SHELL -c "unset FPATH; PATH=/dev/null; $cmd" 2>&1)
172 [[ $got == $exp ]] && err_exit "$cmd should not find ./$cmd with PATH=/dev/null"
174 got=$(unset FPATH; PATH=/dev/null; whence ./$cmd)
175 [[ $got == $exp ]] || err_exit "whence $cmd should find ./$cmd with PATH=/dev/null"
177 got=$(unset FPATH; PATH=/dev/null; whence $PWD/$cmd)
178 [[ $got == $exp ]] || err_exit "whence \$PWD/$cmd should find ./$cmd with PATH=/dev/null"
182 got=$($SHELL -c "unset FPATH; PATH=/dev/null; whence ./notfound" 2>&1)
183 [[ $got
[all...]
H A Dsubshell.sh119 (( no == (BS * nb) )) || err_exit "shell hangs on command substitution output size >= $BS*$nb with write size $bs -- expected $((BS*nb)), got ${no:-0}"
134 (( no == (BS * nb) )) || err_exit "shell hangs on command substitution output size >= $BS*$nb with write size $bs and trailing redirection -- expected $((BS*nb)), got ${no:-0}"
172 do if ! got=$($TEST_shell "$cmd")
174 elif [[ "$got" != "$exp" ]]
176 GOT=$(printf %q "$got")
177 err_exit "${TEST_shell/*-c/\$SHELL -c} ${TEST_unset:+unset }${TEST_fork:+fork }$txt command substitution failed -- expected $EXP, got $GOT"
268 got=$?
269 [[ $got == $exp ]] || err_exit "getopts --man runtime callout with nonzero exit terminates shell -- expected '$exp', got '$got'"
[all...]
H A Dcoprocess.sh118 got=$REPLY
119 if [[ $got != $exp ]]
120 then err_exit "${SHELL-ksh} $cat coprocess io failed -- got '$got', expected '$exp'"
164 [[ $r == $e ]] || err_exit "$cat coprocess timing bug -- expected $e, got '$r'"
177 [[ $r == $e ]] || err_exit "$cat coprocess command substitution bug -- expected $e, got '$r'"
222 [[ $REPLY == "$exp" ]] || err_exit "REPLY from $cat coprocess failed -- expected '$exp', got '$REPLY'"
259 got=$(print -r $'#00315
264 [[ $got == $exp ]] || err_exit "coshell(3) identification sequence failed -- expected '$exp', got '
[all...]
H A Dio.sh64 then err_exit "read on <> fd failed -- expected '$exp', got '$line'"
83 then read -u3 got
84 read -u4 got
86 case $got in
91 [[ $semantics == @(${FDFS[fdfs].semantics}) ]] || err_exit "'4< ${FDFS[fdfs].dir}/3' $semantics semantics instead of ${FDFS[fdfs].semantics} -- expected '$exp', got '$got'"
95 got=$(
104 case $got in
109 [[ $semantics == @(${FDFS[fdfs].semantics}) ]] || err_exit "${FDFS[fdfs].dir}/N $semantics semantics instead of ${FDFS[fdfs].semantics} -- expected '$exp', got '$got'"
[all...]
H A Doptions.sh63 got=$($SHELL -E -c : 2>/dev/null)
66 got=$(printf %q "$got")
67 err_exit "\$ENV file &>/dev/null does not redirect stdout -- expected '', got $got"
69 got=$($SHELL -E -c : 2>&1 >/dev/null)
70 if [[ $got != *nonstandard* || $got == *$'\n'* ]]
72 got=$(printf %q "$got")
[all...]
H A Dleaks.sh64 do got=$($SHELL -c 'x=$(printf "%.*c" '$exp' x); print ${#x}' 2>&1)
65 [[ $got == $exp ]] || err_exit "large command substitution failed -- expected $exp, got $got"
H A Dglob.sh35 typeset lineno expected drop arg got sep op val add del
58 do got="$got$sep<$arg>"
63 then got="<$del> $got"
69 if [[ $got != "$expected" ]]
70 then 'err_exit' $lineno "glob -- expected '$expected', got '$got'"
77 typeset lineno expected subject pattern got
81 $pattern) got
[all...]
H A Dtypes.sh122 got=$(. $tmp/types) 2>/dev/null
123 [[ "$got" == "$expected" ]] || err_exit "typedefs in dot script failed -- expected '$expected', got '$got'"
202 got=${x.b}
203 [[ "$got" == "$expected" ]] || err_exit "type '_' reference failed -- expected '$expected', got '$got'"
218 got=${ tst.f;}
219 [[ "$got"
[all...]
H A Dcomvar.sh371 got=$z
372 [[ $got == "$exp" ]] || {
374 got=$(printf %q "$got")
375 err_exit "compound indexed array pretty print failed -- expected $exp, got $got"
387 got=${record[a]}
388 [[ $got == "$exp" ]] || {
390 got=$(printf %q "$got")
[all...]
H A Dbasic.sh53 [[ $g == $2 ]] || err_exit "umask 0; umask $1 failed -- expected $2, got $g"
413 got=$(print -n fore; (sleep 2;print back)&)
414 [[ $got == $expected ]] || err_exit "command substitution background process output error -- got '$got', expected '$expected'"
443 got=$(
452 [[ $got == $exp ]] || err_exit "pipe to function with conditional fails -- expected '$exp', got '$got'"
453 got
[all...]
H A Dvariables.sh67 got=${ $SHELL -c 'print $PPID'; }
69 then err_exit "PPID variable failed -- expected '$exp', got '$got'"
75 then err_exit "OLDPWD variable failed -- expected '$old', got '$OLDPWD'"
297 *) err_exit "IFS=': '; set -- '$i'; expected '$s' got '$g'" ;;
302 *) err_exit "IFS=': '; read '$i'; expected '$r' got '$g'" ;;
499 got=$(<$tmp/out)
500 [[ $got == new ]] || err_exit "previously unset environment variable not passed to script, expected 'new', got '$got'"
[all...]
H A Dquoting2.sh212 got=$'a\0b'c
213 [[ $got == "$exp" ]] || err_exit "\$'a\\0b'c expansion failed -- expected '$exp', got '$got'"
H A Dattributes.sh354 got=$(print $($SHELL -c "builtin date; $2 $CMD; $3 $CMD; $4 $CMD"))
355 [[ $got == $exp ]] || err_exit "[ '$2' '$3' '$4' ] env sequence failed -- expected '$exp', got '$got'"
378 unset got
379 typeset -u got
381 ((got=$exp))
382 [[ $got == $exp ]] || err_exit "typeset -l fails on numeric value -- expected '$exp', got '$got'"
[all...]
H A Dsignal.sh265 tst $SHELL > tst.got
268 do [[ $out == ${expected[$ops]} ]] || err_exit "interrupt $ops test failed -- expected '${expected[$ops]}', got '$out'"
269 done < tst.got
295 got=$(kill -l $?)
296 [[ $exp == $got ]] || err_exit "kill -$exp \$\$ failed, required termination by signal '$got'"
304 [[ $e == 3 ]] || err_exit "exit status failed -- expected 3, got $e"
306 [[ $x == done ]] || err_exit "output failed -- expected 'done', got '$x'"
312 [[ $e == 3 ]] || err_exit "exit status failed -- expected 3, got $e"
314 [[ $x == done ]] || err_exit "output failed -- expected 'done', got '
[all...]
H A Dheredoc.sh249 got=$( cat << EOF
253 [[ $got == abc ]] || err_exit 'line continuation at start of buffer not working'
287 [[ $1 == $2 ]] || echo expected $1, got $2
H A Dbuiltins.sh191 got=$(trap)
192 [[ $got == $exp ]] || err_exit "\$(trap) failed -- expected \"$exp\", got \"$got\""
194 got=$(trap -p TERM)
195 [[ $got == $exp ]] || err_exit "\$(trap -p TERM) failed -- expected \"$exp\", got \"$got\""
323 then err_exit "read -n1 failed -- expected '$exp', got '$y'"
384 [[ $out == $val ]] || err_exit "printf $fmt $arg failed -- expected '$val', got '
[all...]
H A Dfunctions.sh315 then err_exit "export inside function not working -- expected 'fun', got '$val'"
319 then err_exit "export not restored after function call -- expected 'base', got '$val'"
323 then err_exit "export inside function not working with recursive function -- expected 'fun2', got '$val'"
327 then err_exit "export not restored after recursive function call -- expected 'base', got '$val'"
331 then err_exit "name=value not added to export list with function call -- expected 'try3', got '$val'"
335 then err_exit "export not restored name=value function call -- expected 'base', got '$val'"
340 then err_exit "export inside function not working -- expected 'fun', got '$val'"
344 then err_exit "unset varaible exported after function call -- expected '', got '$val'"
424 got=$?
426 if [[ $got !
[all...]
/ast/src/cmd/re/
H A Dtestglob.c503 int got; local
602 got = ' ';
604 printf("%c%s", got, unsupported[i]);
605 got = ',';
987 expected = got = 0;
992 got = i;
994 if (expected != got) {
1001 printf("%s expected, %s returned", codes[expected].name, codes[got].name);
H A Dtestregex.c1233 int got; local
1423 for (got = 0; i < elementsof(unsupported) - 1; i++)
1425 if (!got)
1427 got = 1;
1433 if (got)
2063 got = 0;
2066 got = i;
2068 skip = extract(tabs, line, re, s, ans, msg, codes[got].name, NiL, 0, 0, skip, level, test|TEST_DELIMIT);
2072 printf("%s returned: ", codes[got].name);
2078 expected = got
[all...]
/ast/src/lib/libz/
H A Dinflate.c1244 unsigned got;
1247 got = *have;
1249 while (next < len && got < 4) {
1250 if ((int)(buf[next]) == (got < 2 ? 0 : 0xff))
1251 got++;
1253 got = 0;
1255 got = 4 - got;
1258 *have = got;
/ast/src/cmd/INIT/
H A Dpackage.sh4078 got=`sed -e 1q get.tmp`
4079 case $got in
4081 got=`sed -e '1,/^.$/d' -e '/^[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWYZ]/!d' get.tmp`
4087 got=`sed -e '/^Location: /!d' -e 's,^Location: \(.*\)://\([^/]*\)\(/.*\),prot='\''\1'\'' host='\''\2'\'' path='\''\3'\'',' get.tmp`
4088 case $got in
4094 eval $got
4097 echo "$command: $action: $url: $got" >&2
4098 echo '' "$got" > get.err
4109 got=`grep '^[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWYZ]' get.tmp 2>/dev/null`
4121 got
[all...]

Completed in 46 milliseconds

12