summaryrefslogtreecommitdiff
path: root/tools/regression/usr.bin/printf
AgeCommit message (Collapse)Author
2014-03-16Migrate most of tools/regression/usr.bin/ to the new tests layout.Julio Merino
I'm starting with the easy cases. The leftovers need to be looked at a bit more closely. Note that this change _does_ modify the code of the old tests. This is required in order to allow the code to locate the data files in the source directory instead of the current directory, because Kyua automatically changes the latter to a temporary directory. Also note that at least one test is known to be broken here. Actually, the test is not really broken: it's marked as a TODO but unfortunately Kyua's TAP parser currently does not understand that. Will have to be fixed separately. Notes: svn path=/head/; revision=263227
2014-03-09Fix printf tests so that they run cleanly with prove.Julio Merino
Notes: svn path=/head/; revision=262954
2012-12-18Add an additional regression tests for other cases to ensure these do not ↵Eitan Adler
get fixed by accident. Notes: svn path=/head/; revision=244409
2012-12-18POSIX requires that non-existent or null arguments be treated as if aEitan Adler
zero argument were supplied. Add a regression test to catch this case as well. PR: bin/174521 Submitted by: Daniel Shahaf <danielsh@elego.de> (pr) Submitted by: Mark Johnston <markjdb@gmail.com> (initial patch) Reviewed by: jilles Approved by: cperciva (implicit) MFC after: 3 weeks Notes: svn path=/head/; revision=244407
2011-05-28printf: Allow multibyte characters for '<char> form, avoid negative codes.Jilles Tjoelker
Examples: LC_ALL=en_US.UTF-8 printf '%d\n' $(printf \'\\303\\244) LC_ALL=en_US.ISO8859-1 printf '%d\n' $(printf \'\\344) Both of these should print 228. Like some other shells, incomplete or invalid multibyte characters yield the value of the first byte without a warning. Note that there is no general way to go back from the character code to the character. Notes: svn path=/head/; revision=222418
2010-12-08printf: Test that the "--" option terminator works.Jilles Tjoelker
Notes: svn path=/head/; revision=216311
2005-04-14Also test \0 in the format string.Stefan Farfeleder
Notes: svn path=/head/; revision=145086
2005-04-13Add a few regression tests for printf(1).Stefan Farfeleder
Notes: svn path=/head/; revision=145028