diff options
author | jilles <jilles@FreeBSD.org> | 2010-12-08 22:54:18 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2010-12-08 22:54:18 +0000 |
commit | b69863b7fd8c607add70ec120752fc2385a10b99 (patch) | |
tree | f7a8d170d81073690693e40fa02c154d565ec3e5 /tools/regression/usr.bin | |
parent | 885e0c9379440717ddd5be9bd05997b4a21df13b (diff) | |
download | FreeBSD-src-b69863b7fd8c607add70ec120752fc2385a10b99.zip FreeBSD-src-b69863b7fd8c607add70ec120752fc2385a10b99.tar.gz |
printf: Test that the "--" option terminator works.
Diffstat (limited to 'tools/regression/usr.bin')
-rw-r--r-- | tools/regression/usr.bin/printf/regress.m5.out | 1 | ||||
-rw-r--r-- | tools/regression/usr.bin/printf/regress.sh | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/tools/regression/usr.bin/printf/regress.m5.out b/tools/regression/usr.bin/printf/regress.m5.out new file mode 100644 index 0000000..2838468 --- /dev/null +++ b/tools/regression/usr.bin/printf/regress.m5.out @@ -0,0 +1 @@ +-d diff --git a/tools/regression/usr.bin/printf/regress.sh b/tools/regression/usr.bin/printf/regress.sh index 86c600f..980fc70 100644 --- a/tools/regression/usr.bin/printf/regress.sh +++ b/tools/regression/usr.bin/printf/regress.sh @@ -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() |