aboutsummaryrefslogtreecommitdiff
path: root/testsuite/tr/tr-works
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-03-30 14:43:27 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-03-30 14:43:27 +0000
commiteceecea568a483a3acec2d4c03228b39ae2d6501 (patch)
tree7faa56bbba59529be6f671026ae97bda84267917 /testsuite/tr/tr-works
parent52a9db6bb874c9ce7a8b7e935ba3ebbefdf3f7d4 (diff)
downloadbusybox-eceecea568a483a3acec2d4c03228b39ae2d6501.tar.gz
- fix bug where we did not reject invalid classes like '[[:alpha'
- debloat while at it: text data bss dec hex filename 1554 0 19 1573 625 tr.o.oorig 1357 0 16 1373 55d tr.o
Diffstat (limited to 'testsuite/tr/tr-works')
-rw-r--r--testsuite/tr/tr-works4
1 files changed, 3 insertions, 1 deletions
diff --git a/testsuite/tr/tr-works b/testsuite/tr/tr-works
index 9b2e90e42..2c0a9d196 100644
--- a/testsuite/tr/tr-works
+++ b/testsuite/tr/tr-works
@@ -17,8 +17,10 @@ tr_test ()
run_tr " " '[:blank:]' 12
run_tr 'a b' '[= =]' X
run_tr "[:" '[:' ab
+ run_tr " .,:" '[:punct:]' 12
+ run_tr " .,:" '[:cntrl:]' 12
}
bb= tr_test > logfile.gnu
bb=busybox tr_test > logfile.bb
-cmp logfile.gnu logfile.bb
+diff -u logfile.gnu logfile.bb