summaryrefslogtreecommitdiff
path: root/testsuite/tr.tests
diff options
context:
space:
mode:
authorDenys Vlasenko2010-05-11 03:53:57 +0200
committerDenys Vlasenko2010-05-11 03:53:57 +0200
commitbfa1b2e8e8aaddcf849011a12cb2ac634b27f339 (patch)
tree4a5fbaef1371fb8b2ca504e753fa2a31d25234d4 /testsuite/tr.tests
parent6334390aef2eb52cc827a6d18f942b2b8a04ef59 (diff)
downloadbusybox-bfa1b2e8e8aaddcf849011a12cb2ac634b27f339.zip
busybox-bfa1b2e8e8aaddcf849011a12cb2ac634b27f339.tar.gz
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 9706056..a1f83bf 100755
--- a/testsuite/tr.tests
+++ b/testsuite/tr.tests
@@ -15,17 +15,23 @@ testing "tr understands 0-9A-F" \
"tr -cd '[0-9A-F]'" \
"19AF" "" "19AFH\n"
+optional CONFIG_FEATURE_TR_CLASSES
testing "tr understands [:xdigit:]" \
"tr -cd '[:xdigit:]'" \
"19AF" "" "19AFH\n"
+SKIP=
+optional CONFIG_FEATURE_TR_CLASSES
testing "tr does not stop after [:digit:]" \
"tr '[:digit:]y-z' 111111111123" \
"111abcx23\n" "" "789abcxyz\n"
+SKIP=
+optional CONFIG_FEATURE_TR_CLASSES
testing "tr has correct xdigit sequence" \
"tr '[:xdigit:]Gg' 1111111151242222333330xX" \
"#1111111151242222x333330X\n" "" \
"#0123456789ABCDEFGabcdefg\n"
+SKIP=
exit $FAILCOUNT