testsuite: typo in tr.tests

Hi

tr.tests script from bb 1.17 testsuite has wrong "optional"
conditional clauses. As result, some tr tests was skipped even if
CONFIG_FEATURE_TR_CLASSES=y. Patch attached fixes problem for me.

- Leonid

Signed-off-by: Leonid Lisovskiy <lly.dev@gmail.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
This commit is contained in:
Leonid Lisovskiy 2010-07-29 11:05:30 +04:00 committed by Bernhard Reutner-Fischer
parent 64b6f7cfba
commit 1538c975ec
2 changed files with 4 additions and 4 deletions

View File

@ -26,7 +26,7 @@
# number of failed tests.
# The "optional" function is used to skip certain tests, ala:
# optional CONFIG_FEATURE_THINGY
# optional FEATURE_THINGY
#
# The "optional" function checks the environment variable "OPTIONFLAGS",
# which is either empty (in which case it always clears SKIP) or

View File

@ -15,19 +15,19 @@ testing "tr understands 0-9A-F" \
"tr -cd '[0-9A-F]'" \
"19AF" "" "19AFH\n"
optional CONFIG_FEATURE_TR_CLASSES
optional FEATURE_TR_CLASSES
testing "tr understands [:xdigit:]" \
"tr -cd '[:xdigit:]'" \
"19AF" "" "19AFH\n"
SKIP=
optional CONFIG_FEATURE_TR_CLASSES
optional 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
optional FEATURE_TR_CLASSES
testing "tr has correct xdigit sequence" \
"tr '[:xdigit:]Gg' 1111111151242222333330xX" \
"#1111111151242222x333330X\n" "" \