Add some cases pertaining to another bug I just fixed.
This commit is contained in:
parent
8d0b47d1c9
commit
eac2170da1
@ -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.
|
# Copyright (c) 2013 The NetBSD Foundation, Inc.
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
@ -57,6 +57,14 @@ dopt_body() {
|
|||||||
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 '"'\n'"
|
||||||
atf_check -o inline:'splice' -x '(echo spl; echo ice) | tr -d '"'\012'"
|
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
|
# make sure 0 works
|
||||||
# (ignore stderr as dd blabbers to it)
|
# (ignore stderr as dd blabbers to it)
|
||||||
atf_check -e ignore -o inline:'ab\n' \
|
atf_check -e ignore -o inline:'ab\n' \
|
||||||
|
Loading…
Reference in New Issue
Block a user