Author: pfg
Date: Wed Aug 22 04:27:33 2018
New Revision: 338181
URL: https://svnweb.freebsd.org/changeset/base/338181

Log:
  MFC r337728: (committed by jilles)
  printf: Add test for width and precision in %b format
  
  PR:  229641

Added:
  stable/11/usr.bin/printf/tests/regress.bwidth.out
     - copied unchanged from r337728, 
head/usr.bin/printf/tests/regress.bwidth.out
Modified:
  stable/11/usr.bin/printf/tests/Makefile
  stable/11/usr.bin/printf/tests/regress.sh
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/usr.bin/printf/tests/Makefile
==============================================================================
--- stable/11/usr.bin/printf/tests/Makefile     Wed Aug 22 04:21:25 2018        
(r338180)
+++ stable/11/usr.bin/printf/tests/Makefile     Wed Aug 22 04:27:33 2018        
(r338181)
@@ -5,6 +5,7 @@ PACKAGE=        tests
 TAP_TESTS_SH=  legacy_test
 
 ${PACKAGE}FILES+=              regress.b.out
+${PACKAGE}FILES+=              regress.bwidth.out
 ${PACKAGE}FILES+=              regress.d.out
 ${PACKAGE}FILES+=              regress.f.out
 ${PACKAGE}FILES+=              regress.l1.out

Copied: stable/11/usr.bin/printf/tests/regress.bwidth.out (from r337728, 
head/usr.bin/printf/tests/regress.bwidth.out)
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ stable/11/usr.bin/printf/tests/regress.bwidth.out   Wed Aug 22 04:27:33 
2018        (r338181, copy of r337728, 
head/usr.bin/printf/tests/regress.bwidth.out)
@@ -0,0 +1 @@
+      a

Modified: stable/11/usr.bin/printf/tests/regress.sh
==============================================================================
--- stable/11/usr.bin/printf/tests/regress.sh   Wed Aug 22 04:21:25 2018        
(r338180)
+++ stable/11/usr.bin/printf/tests/regress.sh   Wed Aug 22 04:27:33 2018        
(r338181)
@@ -2,7 +2,7 @@
 
 REGRESSION_START($1)
 
-echo '1..23'
+echo '1..24'
 
 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')
@@ -27,5 +27,6 @@ REGRESSION_TEST(`missingpos1', `printf "%*.*1\$s" 1 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_TEST(`bwidth', `printf "%8.2b" "a\nb\n"')
 
 REGRESSION_END()
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to