Append a case for (fixed) PR bin/25899. From Min Sik Kim.

This commit is contained in:
jruoho 2012-03-27 07:39:00 +00:00
parent 32204f9f4d
commit 1e806afd68
4 changed files with 21 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: mi,v 1.456 2012/03/24 18:27:53 tron Exp $
# $NetBSD: mi,v 1.457 2012/03/27 07:39:00 jruoho Exp $
#
# Note: don't delete entries from here - mark them as "obsolete" instead.
#
@ -3148,6 +3148,7 @@
./usr/tests/usr.bin/sdiff/t_sdiff tests-usr.bin-tests atf
./usr/tests/usr.bin/sed tests-usr.bin-tests
./usr/tests/usr.bin/sed/Atffile tests-usr.bin-tests atf
./usr/tests/usr.bin/sed/d_c2048.in tests-usr.bin-tests atf
./usr/tests/usr.bin/sed/t_sed tests-usr.bin-tests atf
./usr/tests/usr.bin/shmif_dumpbus tests-usr.bin-tests
./usr/tests/usr.bin/shmif_dumpbus/Atffile tests-usr.bin-tests atf

View File

@ -1,8 +1,11 @@
# $NetBSD: Makefile,v 1.1 2012/03/18 10:12:30 jruoho Exp $
# $NetBSD: Makefile,v 1.2 2012/03/27 07:39:00 jruoho Exp $
.include <bsd.own.mk>
TESTSDIR= ${TESTSBASE}/usr.bin/sed
TESTS_SH= t_sed
FILESDIR= ${TESTSDIR}
FILES+= d_c2048.out
.include <bsd.test.mk>

View File

@ -0,0 +1 @@
s/1/abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabc\/defghij/

View File

@ -1,4 +1,4 @@
# $NetBSD: t_sed.sh,v 1.3 2012/03/19 06:21:53 jruoho Exp $
# $NetBSD: t_sed.sh,v 1.4 2012/03/27 07:39:00 jruoho Exp $
#
# Copyright (c) 2012 The NetBSD Foundation, Inc.
# All rights reserved.
@ -28,6 +28,18 @@
# POSSIBILITY OF SUCH DAMAGE.
#
atf_test_case c2048
c2048_head() {
atf_set "descr" "Test that sed(1) does not fail when the " \
"2048'th character is a backslash (PR bin/25899)"
}
c2048_body() {
atf_check -s exit:0 -o empty -e empty \
-x "sed -f $(atf_get_srcdir)/d_c2048.in"
}
atf_test_case emptybackref
emptybackref_head() {
atf_set "descr" "Test that sed(1) handles " \
@ -108,6 +120,7 @@ rangeselection_body() {
}
atf_init_test_cases() {
atf_add_test_case c2048
atf_add_test_case emptybackref
atf_add_test_case longlines
atf_add_test_case rangeselection