strrchr: actually, last one was finding "" in "any" at pos 0,
[oweals/busybox.git] / testsuite / printf.tests
1 #!/bin/sh
2
3 set -e
4
5 . testing.sh
6
7 # Need this in order to not execute shell builtin
8 bb="busybox "
9
10 # testing "test name" "command" "expected result" "file input" "stdin"
11
12 testing "printf produce no further output 1" \
13         "${bb}printf '\c' foo" \
14         "" \
15         "" ""
16
17 testing "printf produce no further output 2" \
18         "${bb}printf '%s\c' foo \$HOME" \
19         "foo" \
20         "" ""
21
22 testing "printf repeatedly use pattern for each argv" \
23         "${bb}printf '%s\n' foo \$HOME" \
24         "foo\n$HOME\n" \
25         "" ""
26
27 exit $FAILCOUNT