/titanic_51/usr/src/contrib/ast/src/cmd/ksh93/tests/ |
H A D | locale.sh | 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'" 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 D | path.sh | 169 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 D | cubetype.sh | 57 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 D | coprocess.sh | 118 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 D | subshell.sh | 119 (( 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 D | io.sh | 64 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 D | options.sh | 63 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 D | sigchld.sh | 62 (( 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 D | types.sh | 122 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 D | comvar.sh | 371 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 D | glob.sh | 35 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...] |
/titanic_51/usr/src/lib/libshell/common/tests/ |
H A D | path.sh | 169 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 == $exp ]] || err_exit "whence ./$cmd failed -- expected '$exp', got '$got'" [all …]
|
H A D | subshell.sh | 171 do if ! got=$($TEST_shell "$cmd") 173 elif [[ "$got" != "$exp" ]] 175 GOT=$(printf %q "$got") 267 got=$? 268 [[ $got == $exp ]] || err_exit "getopts --man runtime callout with nonzero exit terminates shell --… 270 got=$($SHELL -c $' 278 [[ $got == $exp ]] || err_exit "getopts --man runtime callout with nonzero exit terminates shell --… 314 do got=${ printf "$body" "$1" "$2" "$code" | $SHELL 2>&1 } 318 elif [[ $got != $exp ]] 319 then err_exit "test $TEST '$1...$2 exit $code' failed -- got '$got', expected '$exp'" [all …]
|
H A D | cubetype.sh | 57 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($… 61 exp=5 got=${b.len} 62 [[ "$got" == "$exp" ]] || err_exit "\${b.len} incorrect for iteration $i -- expected $exp, got '$go… 63 exp=box1 got=${b.name} 64 [[ "$got" == "${exp}" ]] || err_exit "\${b.name} incorrect for iteration $i -- expected $exp, got '… 65 exp=2 got=$(( b.count )) 66 (( got == exp )) || err_exit "b.count incorrect for iteration $i -- expected $exp, got '$got'" [all …]
|
H A D | coprocess.sh | 110 got=$REPLY 111 if [[ $got != $exp ]] 112 then err_exit "${SHELL-ksh} coprocess io failed -- got '$got', expected '$exp'" 246 got=$(print -r $'#00315 251 [[ $got == $exp ]] || err_exit "coshell(3) identification sequence failed -- expected '$exp', got '… 264 then read -p got 265 else got='no coprocess' 267 [[ $got == $exp ]] || err_exit "main coprocess main query failed -- expected $exp, got '$got'" 275 then read -p got 276 else got='no coprocess' [all …]
|
H A D | options.sh | 63 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") 73 …rr_exit "\$ENV file &>/dev/null does not redirect stderr -- expected one diagnostic line, got $got" 387 …got=$(for((n=1;n<exp;n++))do $SHELL --pipefail -c '(sleep 0.1;false)|true|true' && break; done; pr… 388 …[[ $got == $exp ]] || err_exit "--pipefail -c '(sleep 0.1;false)|true|true' fails with exit status… 405 got=$( [all …]
|
H A D | sigchld.sh | 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 … 114 got=$( ( sleep 1;print $'\n') | $SHELL -c 'function handler { : ;} 117 [[ $got == good ]] || err_exit 'SIGCLD handler effects read behavior'
|
H A D | types.sh | 122 got=$(. $tmp/types) 2>/dev/null 123 [[ "$got" == "$expected" ]] || err_exit "typedefs in dot script failed -- expected '$expected', got… 202 got=${x.b} 203 [[ "$got" == "$expected" ]] || err_exit "type '_' reference failed -- expected '$expected', got '$g… 218 got=${ tst.f;} 219 [[ "$got" == "$expected" ]] || err_exit "_.g where g is a function in type discipline method failed… 233 got=${ x.f;} 234 [[ "$got" == "$expected" ]] || err_exit "array assignment of subscripts in type discipline arithmet… 252 got=$(typeset -p _Dbg_filenames) 253 [[ "$got" == "$expected" ]] || { [all …]
|
H A D | io.sh | 83 then read -u3 got 84 read -u4 got 86 case $got in 91 …fs].dir}/3' $semantics semantics instead of ${FDFS[fdfs].semantics} -- expected '$exp', got '$got'" 95 got=$( 104 case $got in 109 …dfs].dir}/N $semantics semantics instead of ${FDFS[fdfs].semantics} -- expected '$exp', got '$got'" 430 got=$(< $file) 431 [[ $got == $exp ]] || err_exit "output garbled when stderr is duped -- expected $(printf %q "$exp")… 445 got=$(<$tmp/21.out) [all …]
|
H A D | variables.sh | 67 got=${ $SHELL -c 'print $PPID'; } 69 then err_exit "PPID variable failed -- expected '$exp', got '$got'" 490 got=$(<$tmp/out) 491 [[ $got == new ]] || err_exit "previously unset environment variable not passed to script, expected… 496 got=$(<$tmp/out) 497 [[ $got == new ]] || err_exit "environment variable covering local variable not passed to script, e… 502 got=$(<$tmp/out) 503 [[ $got == new ]] || err_exit "environment variable covering environment variable not passed to scr… 637 got=$($SHELL -c 'unset SHLVL; print -n aaa; ./zzz' 2>&1) >/dev/null 2>&1 638 [[ $got == "$exp" ]] || err_exit "unset SHLVL causes script failure -- expected '$exp', got '$got'" [all …]
|
H A D | glob.sh | 35 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 85 if [[ $got != "$expected" ]] 86 then 'err_exit' $lineno "case $subject in $pattern) -- expected '$expected', got '$got'"
|
/titanic_51/usr/src/boot/sys/boot/i386/libi386/ |
H A D | pread.c | 63 int count, got; local 67 got = read(fd, buf, count); 68 if (got < 0) 72 vpbcopy(buf, dest, got); 74 dest += got; 75 rsize -= got; 76 if (got < count)
|
/titanic_51/usr/src/lib/libwrap/ |
H A D | misc.c | 41 int got; local 45 got = strlen(ptr); 46 if (got >= 1 && ptr[got - 1] == '\n') { 48 if (got >= 2 && ptr[got - 2] == '\\') { 49 got -= 2; 54 ptr += got; 55 len -= got;
|
/titanic_51/usr/src/boot/sys/boot/ofw/libofw/ |
H A D | ofw_copy.c | 140 ssize_t got; in ofw_readin() local 158 for (resid = len; resid > 0; resid -= got, p += got) { in ofw_readin() 160 got = read(fd, buf, get); in ofw_readin() 162 if (got <= 0) { in ofw_readin() 163 if (got < 0) in ofw_readin() 168 bcopy(buf, (void *)p, got); in ofw_readin()
|
/titanic_51/usr/src/cmd/sendmail/libsm/ |
H A D | t-match.c | 20 got = sm_match(str, pat); \ 21 if (!SM_TEST(got == want)) \ 24 str, pat, got ? "true" : "false"); 31 bool got; variable
|