Home | History | Annotate | Download | only in printf

Lines Matching refs:RES

102 	RES="$( do_printf "$@" 2>&3 && echo X )" || atf_fail "$*  ... Exit $?"
104 RES=${RES%X} # hack to defeat \n removal from $() output
108 case "${RES}" in
111 "$* ... Expected anything but <<${WANT}>>, Received <<${RES}>>"
117 case "${RES}" in
121 atf_fail "$* ... Expected <<${WANT}>> Received <<${RES}>>"
138 RES="$( do_printf "$@" 2>&3 && echo X )" || atf_fail "$* ... Exit $?"
140 RES=${RES%X} # hack to defeat \n removal from $() output
142 case "${RES}" in
147 "$* ... Expected <<${WANT1}|${WANT2}>> Received <<${RES}>>"
157 RES=$( do_printf "$@" 2>/dev/null && echo X ) && {
158 RES=${RES%X}
159 case "${RES}" in
168 atf_fail "$* ... success with <<${RES}>> (not <<${WANT}>>)"
176 RES=$( do_printf "$@" 2>&1 >/dev/null )
178 test -z "${RES}" &&
181 RES="$( do_printf "$@" 2>/dev/null || : ; echo X )"
182 RES=${RES%X} # hack to defeat \n removal from $() output
184 case "${RES}" in
191 "$* ... should fail with <<${WANT}>> did exit(${STAT}) with <<${RES}>>"
278 RES=$(( $( do_printf "${fmt}" | wc -c ) ))
279 if [ "${RES}" -ne 1 ]
281 atf_fail "'${fmt}' output $RES bytes, expected 1"
284 RES="$( do_printf "${fmt}" | od -A n -to1 | tr -d ' ')"
286 "'${fmt}' output was '\\${RES}' should be '\\000'"
1308 RES="$(do_printf %b "${fmt}" | od -An -to1 | tr -d ' ')"
1310 "%b '${fmt}' output was '\\${RES}' should be '\\000'"
1321 RES=$(( $( do_printf %b "${xt}" | wc -c ) ))
1323 if [ "${RES}" -ne "${xl}" ]
1326 "%b '${xt}' output ${RES} chars, expected ${xl}"
1406 res= zpad=.
1409 expect "${res}" '%.*s' "$i" aaaaaaaaaaaaaaaa
1410 res="${res}a"
1429 res=
1432 res="${res}z"
1433 expect " ${res}" '%*.*s' $(( $i + 2 )) "$i" zzzzzzzzzzz
1472 eval "RES=${QUOTED}"
1474 if [ "${RES}" != "${string}" ]
1477 "%q <<${string}>> as <<${QUOTED}>> makes <<${RES}>>"
1490 eval "RES=${QUOTED}"
1491 if [ "${RES}" != "${string}" ]
1494 "%-32q <<${string}>> as <<${QUOTED}>> makes <<${RES}>>"
1613 RES="$( do_printf "${fmt}" | od -A n -to1 | tr -d ' ')"
1615 "printf '${fmt}' output was '\\${RES}' should be '\\000'"
1627 RES="$( do_printf %c '' |
1631 "printf %c '' did not output nothing: got '${RES}'"
1638 RES="$( do_printf %c '' |
1642 "printf %c '' did not output nothing: got '${RES}'"
1645 RES="$( do_printf %c '' | od -A n -to1 | tr -d ' ')"
1647 "printf %c '' output was '\\${RES}' should be '\\000'"