testsuite: typo in tr.tests
authorLeonid Lisovskiy <lly.dev@gmail.com>
Thu, 29 Jul 2010 07:05:30 +0000 (11:05 +0400)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Thu, 29 Jul 2010 08:11:09 +0000 (10:11 +0200)
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>
testsuite/testing.sh
testsuite/tr.tests

index 913d7f8ef93862ea0ecfd1174dcf8ddf28e61e35..f907deade19932950cfc387b5617b2ea83a0ad56 100644 (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
index a1f83bfc60ec474cbe4494022c59bdc0d4855417..5dabbb52f87f6fb2319ed8679405ed1da093b5c5 100755 (executable)
@@ -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" "" \