Date: Wed, 8 Dec 2010 22:54:18 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r216311 - head/tools/regression/usr.bin/printf Message-ID: <201012082254.oB8MsINQ017166@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jilles Date: Wed Dec 8 22:54:18 2010 New Revision: 216311 URL: http://svn.freebsd.org/changeset/base/216311 Log: printf: Test that the "--" option terminator works. Added: head/tools/regression/usr.bin/printf/regress.m5.out (contents, props changed) Modified: head/tools/regression/usr.bin/printf/regress.sh Added: head/tools/regression/usr.bin/printf/regress.m5.out ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/tools/regression/usr.bin/printf/regress.m5.out Wed Dec 8 22:54:18 2010 (r216311) @@ -0,0 +1 @@ +-d Modified: head/tools/regression/usr.bin/printf/regress.sh ============================================================================== --- head/tools/regression/usr.bin/printf/regress.sh Wed Dec 8 22:13:27 2010 (r216310) +++ head/tools/regression/usr.bin/printf/regress.sh Wed Dec 8 22:54:18 2010 (r216311) @@ -2,7 +2,7 @@ REGRESSION_START($1) -echo '1..8' +echo '1..9' REGRESSION_TEST(`b', `printf "abc%b%b" "def\n" "\cghi"') REGRESSION_TEST(`d', `printf "%d,%5d,%.5d,%0*d,%.*d\n" 123 123 123 5 123 5 123') @@ -11,6 +11,7 @@ REGRESSION_TEST(`m1', `printf "%c%%%d\0\ REGRESSION_TEST(`m2', `printf "abc\n\cdef"') REGRESSION_TEST(`m3', `printf "%%%s\n" abc def ghi jkl') REGRESSION_TEST(`m4', `printf "%d,%f,%c,%s\n"') +REGRESSION_TEST(`m5', `printf -- "-d\n"') REGRESSION_TEST(`s', `printf "%.3s,%-5s\n" abcd abc') REGRESSION_END()
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012082254.oB8MsINQ017166>