mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
printf: Test that the "--" option terminator works.
This commit is contained in:
parent
1866e8abab
commit
1c95cbaf9b
2 changed files with 3 additions and 1 deletions
1
tools/regression/usr.bin/printf/regress.m5.out
Normal file
1
tools/regression/usr.bin/printf/regress.m5.out
Normal file
|
|
@ -0,0 +1 @@
|
|||
-d
|
||||
|
|
@ -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\045\n" abc \"abc')
|
|||
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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue