From owner-svn-src-head@FreeBSD.ORG Mon May 26 15:08:40 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 67CE3123; Mon, 26 May 2014 15:08:40 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 549222C53; Mon, 26 May 2014 15:08:40 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s4QF8eBv078191; Mon, 26 May 2014 15:08:40 GMT (envelope-from pfg@svn.freebsd.org) Received: (from pfg@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s4QF8ewQ078188; Mon, 26 May 2014 15:08:40 GMT (envelope-from pfg@svn.freebsd.org) Message-Id: <201405261508.s4QF8ewQ078188@svn.freebsd.org> From: "Pedro F. Giffuni" Date: Mon, 26 May 2014 15:08:39 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r266691 - head/usr.bin/printf/tests X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18 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: Mon, 26 May 2014 15:08:40 -0000 Author: pfg Date: Mon May 26 15:08:39 2014 New Revision: 266691 URL: http://svnweb.freebsd.org/changeset/base/266691 Log: printf(1): add tests for warn about incomplete uses n$ Submitted by: jilles MFC after: 2 weeks Added: head/usr.bin/printf/tests/regress.missingpos1.out (contents, props changed) Modified: head/usr.bin/printf/tests/regress.sh Added: head/usr.bin/printf/tests/regress.missingpos1.out ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/usr.bin/printf/tests/regress.missingpos1.out Mon May 26 15:08:39 2014 (r266691) @@ -0,0 +1 @@ +printf: incomplete use of n$ Modified: head/usr.bin/printf/tests/regress.sh ============================================================================== --- head/usr.bin/printf/tests/regress.sh Mon May 26 14:57:47 2014 (r266690) +++ head/usr.bin/printf/tests/regress.sh Mon May 26 15:08:39 2014 (r266691) @@ -19,5 +19,13 @@ REGRESSION_TEST('zero', `printf "%u%u\n" REGRESSION_TEST('zero', `printf "%d%d\n" 15') REGRESSION_TEST('zero', `printf "%d%u\n" 15') REGRESSION_TEST('zero', `printf "%u%d\n" 15') +REGRESSION_TEST(`missingpos1', `printf "%1\$*s" 1 1 2>&1') +REGRESSION_TEST(`missingpos1', `printf "%*1\$s" 1 1 2>&1') +REGRESSION_TEST(`missingpos1', `printf "%1\$*.*s" 1 1 1 2>&1') +REGRESSION_TEST(`missingpos1', `printf "%*1\$.*s" 1 1 1 2>&1') +REGRESSION_TEST(`missingpos1', `printf "%*.*1\$s" 1 1 1 2>&1') +REGRESSION_TEST(`missingpos1', `printf "%1\$*2\$.*s" 1 1 1 2>&1') +REGRESSION_TEST(`missingpos1', `printf "%*1\$.*2\$s" 1 1 1 2>&1') +REGRESSION_TEST(`missingpos1', `printf "%1\$*.*2\$s" 1 1 1 2>&1') REGRESSION_END()