Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 May 2014 15:08:39 +0000 (UTC)
From:      "Pedro F. Giffuni" <pfg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r266691 - head/usr.bin/printf/tests
Message-ID:  <201405261508.s4QF8ewQ078188@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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()



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405261508.s4QF8ewQ078188>