fix or document testsuite failures

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2009-06-13 23:41:57 +02:00
parent 16635cc2e0
commit 2441060beb
3 changed files with 11 additions and 7 deletions

View File

@@ -79,12 +79,13 @@ testing "printf understands %Ld" \
"-5\n""0\n" \
"" ""
# We are "more correct" here than bash/coreutils: they happily print -2
# as if it is a huge unsigned number
testing "printf handles %u -N" \
"${bb}printf '%u\n' 1 -2 3 2>&1; echo \$?" \
"1\n""printf: -2: invalid number\n""0\n""3\n""0\n" \
"" ""
# "FIXED" now to act compatibly
## We are "more correct" here than bash/coreutils: they happily print -2
## as if it is a huge unsigned number
#testing "printf handles %u -N" \
# "${bb}printf '%u\n' 1 -2 3 2>&1; echo \$?" \
# "1\n""printf: -2: invalid number\n""0\n""3\n""0\n" \
# "" ""
# Actually, we are wrong here: exit code should be 1
testing "printf handles %d bad_input" \