diff options
author | Leonid Lisovskiy <lly.dev@gmail.com> | 2010-07-29 11:05:30 +0400 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2010-07-29 10:11:09 +0200 |
commit | 1538c975ec127efc368284abe0777006719bf505 (patch) | |
tree | c933052f1313c93246c5541064e8efc4aaa7bf40 | |
parent | 64b6f7cfbafb66c0b9be08a30ec348579f17052a (diff) | |
download | busybox-w32-1538c975ec127efc368284abe0777006719bf505.tar.gz busybox-w32-1538c975ec127efc368284abe0777006719bf505.tar.bz2 busybox-w32-1538c975ec127efc368284abe0777006719bf505.zip |
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>
-rw-r--r-- | testsuite/testing.sh | 2 | ||||
-rwxr-xr-x | testsuite/tr.tests | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/testsuite/testing.sh b/testsuite/testing.sh index 913d7f8ef..f907deade 100644 --- a/testsuite/testing.sh +++ b/testsuite/testing.sh | |||
@@ -26,7 +26,7 @@ | |||
26 | # number of failed tests. | 26 | # number of failed tests. |
27 | 27 | ||
28 | # The "optional" function is used to skip certain tests, ala: | 28 | # The "optional" function is used to skip certain tests, ala: |
29 | # optional CONFIG_FEATURE_THINGY | 29 | # optional FEATURE_THINGY |
30 | # | 30 | # |
31 | # The "optional" function checks the environment variable "OPTIONFLAGS", | 31 | # The "optional" function checks the environment variable "OPTIONFLAGS", |
32 | # which is either empty (in which case it always clears SKIP) or | 32 | # which is either empty (in which case it always clears SKIP) or |
diff --git a/testsuite/tr.tests b/testsuite/tr.tests index a1f83bfc6..5dabbb52f 100755 --- a/testsuite/tr.tests +++ b/testsuite/tr.tests | |||
@@ -15,19 +15,19 @@ 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 | ||
18 | optional CONFIG_FEATURE_TR_CLASSES | 18 | optional FEATURE_TR_CLASSES |
19 | testing "tr understands [:xdigit:]" \ | 19 | testing "tr understands [:xdigit:]" \ |
20 | "tr -cd '[:xdigit:]'" \ | 20 | "tr -cd '[:xdigit:]'" \ |
21 | "19AF" "" "19AFH\n" | 21 | "19AF" "" "19AFH\n" |
22 | SKIP= | 22 | SKIP= |
23 | 23 | ||
24 | optional CONFIG_FEATURE_TR_CLASSES | 24 | optional FEATURE_TR_CLASSES |
25 | testing "tr does not stop after [:digit:]" \ | 25 | testing "tr does not stop after [:digit:]" \ |
26 | "tr '[:digit:]y-z' 111111111123" \ | 26 | "tr '[:digit:]y-z' 111111111123" \ |
27 | "111abcx23\n" "" "789abcxyz\n" | 27 | "111abcx23\n" "" "789abcxyz\n" |
28 | SKIP= | 28 | SKIP= |
29 | 29 | ||
30 | optional CONFIG_FEATURE_TR_CLASSES | 30 | optional FEATURE_TR_CLASSES |
31 | testing "tr has correct xdigit sequence" \ | 31 | testing "tr has correct xdigit sequence" \ |
32 | "tr '[:xdigit:]Gg' 1111111151242222333330xX" \ | 32 | "tr '[:xdigit:]Gg' 1111111151242222333330xX" \ |
33 | "#1111111151242222x333330X\n" "" \ | 33 | "#1111111151242222x333330X\n" "" \ |