Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/usr.bin/tr Add some cases pertaining to another bug I ...



details:   https://anonhg.NetBSD.org/src/rev/7f050bd4351f
branches:  trunk
changeset: 789205:7f050bd4351f
user:      dholland <dholland%NetBSD.org@localhost>
date:      Sun Aug 11 01:50:02 2013 +0000

description:
Add some cases pertaining to another bug I just fixed.

diffstat:

 tests/usr.bin/tr/t_basic.sh |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 51d14df5e329 -r 7f050bd4351f tests/usr.bin/tr/t_basic.sh
--- a/tests/usr.bin/tr/t_basic.sh       Sun Aug 11 01:49:40 2013 +0000
+++ b/tests/usr.bin/tr/t_basic.sh       Sun Aug 11 01:50:02 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_basic.sh,v 1.2 2013/08/11 00:29:21 dholland Exp $
+# $NetBSD: t_basic.sh,v 1.3 2013/08/11 01:50:02 dholland Exp $
 #
 # Copyright (c) 2013 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -57,6 +57,14 @@
        atf_check -o inline:'splice' -x '(echo spl; echo ice) | tr -d '"'\n'"
        atf_check -o inline:'splice' -x '(echo spl; echo ice) | tr -d '"'\012'"
 
+       # see if escape codes work when followed by other things
+       atf_check -o inline:'slice' -x '(echo spl; echo ice) | tr -d '"'\n'p"
+       atf_check -o inline:'slice' -x '(echo spl; echo ice) | tr -d '"'\012'p"
+
+       # see if the [=x=] syntax works
+       atf_check -o inline:'abde\n' -x 'echo abcde | tr -d '"'[=c=]'"
+       atf_check -o inline:'bde\n' -x 'echo abcde | tr -d '"'[=c=]'a"
+
        # make sure 0 works
        # (ignore stderr as dd blabbers to it)
        atf_check -e ignore -o inline:'ab\n' \



Home | Main Index | Thread Index | Old Index