aboutsummaryrefslogtreecommitdiff
path: root/testsuite/tr.tests
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-05-11 03:53:57 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-05-11 03:53:57 +0200
commitbfa1b2e8e8aaddcf849011a12cb2ac634b27f339 (patch)
tree4a5fbaef1371fb8b2ca504e753fa2a31d25234d4 /testsuite/tr.tests
parent6334390aef2eb52cc827a6d18f942b2b8a04ef59 (diff)
downloadbusybox-w32-bfa1b2e8e8aaddcf849011a12cb2ac634b27f339.tar.gz
busybox-w32-bfa1b2e8e8aaddcf849011a12cb2ac634b27f339.tar.bz2
busybox-w32-bfa1b2e8e8aaddcf849011a12cb2ac634b27f339.zip
randomtest fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite/tr.tests')
-rwxr-xr-xtestsuite/tr.tests6
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/tr.tests b/testsuite/tr.tests
index 9706056c9..a1f83bfc6 100755
--- a/testsuite/tr.tests
+++ b/testsuite/tr.tests
@@ -15,17 +15,23 @@ testing "tr understands 0-9A-F" \
15 "tr -cd '[0-9A-F]'" \ 15 "tr -cd '[0-9A-F]'" \
16 "19AF" "" "19AFH\n" 16 "19AF" "" "19AFH\n"
17 17
18optional CONFIG_FEATURE_TR_CLASSES
18testing "tr understands [:xdigit:]" \ 19testing "tr understands [:xdigit:]" \
19 "tr -cd '[:xdigit:]'" \ 20 "tr -cd '[:xdigit:]'" \
20 "19AF" "" "19AFH\n" 21 "19AF" "" "19AFH\n"
22SKIP=
21 23
24optional CONFIG_FEATURE_TR_CLASSES
22testing "tr does not stop after [:digit:]" \ 25testing "tr does not stop after [:digit:]" \
23 "tr '[:digit:]y-z' 111111111123" \ 26 "tr '[:digit:]y-z' 111111111123" \
24 "111abcx23\n" "" "789abcxyz\n" 27 "111abcx23\n" "" "789abcxyz\n"
28SKIP=
25 29
30optional CONFIG_FEATURE_TR_CLASSES
26testing "tr has correct xdigit sequence" \ 31testing "tr has correct xdigit sequence" \
27 "tr '[:xdigit:]Gg' 1111111151242222333330xX" \ 32 "tr '[:xdigit:]Gg' 1111111151242222333330xX" \
28 "#1111111151242222x333330X\n" "" \ 33 "#1111111151242222x333330X\n" "" \
29 "#0123456789ABCDEFGabcdefg\n" 34 "#0123456789ABCDEFGabcdefg\n"
35SKIP=
30 36
31exit $FAILCOUNT 37exit $FAILCOUNT