From owner-svn-src-head@FreeBSD.ORG Wed Dec 8 22:54:19 2010 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0F017106564A; Wed, 8 Dec 2010 22:54:19 +0000 (UTC) (envelope-from jilles@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id F246A8FC18; Wed, 8 Dec 2010 22:54:18 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id oB8MsIiE017168; Wed, 8 Dec 2010 22:54:18 GMT (envelope-from jilles@svn.freebsd.org) Received: (from jilles@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id oB8MsINQ017166; Wed, 8 Dec 2010 22:54:18 GMT (envelope-from jilles@svn.freebsd.org) Message-Id: <201012082254.oB8MsINQ017166@svn.freebsd.org> From: Jilles Tjoelker Date: Wed, 8 Dec 2010 22:54:18 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r216311 - head/tools/regression/usr.bin/printf X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Dec 2010 22:54:19 -0000 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()