Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Append a case for (fixed) PR bin/25899. From Min Sik Kim.
details: https://anonhg.NetBSD.org/src/rev/753af67ff6c7
branches: trunk
changeset: 778450:753af67ff6c7
user: jruoho <jruoho%NetBSD.org@localhost>
date: Tue Mar 27 07:39:00 2012 +0000
description:
Append a case for (fixed) PR bin/25899. From Min Sik Kim.
diffstat:
distrib/sets/lists/tests/mi | 3 ++-
tests/usr.bin/sed/Makefile | 5 ++++-
tests/usr.bin/sed/d_c2048.in | 1 +
tests/usr.bin/sed/t_sed.sh | 15 ++++++++++++++-
4 files changed, 21 insertions(+), 3 deletions(-)
diffs (74 lines):
diff -r d0fdc9eea709 -r 753af67ff6c7 distrib/sets/lists/tests/mi
--- a/distrib/sets/lists/tests/mi Tue Mar 27 07:23:06 2012 +0000
+++ b/distrib/sets/lists/tests/mi Tue Mar 27 07:39:00 2012 +0000
@@ -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
diff -r d0fdc9eea709 -r 753af67ff6c7 tests/usr.bin/sed/Makefile
--- a/tests/usr.bin/sed/Makefile Tue Mar 27 07:23:06 2012 +0000
+++ b/tests/usr.bin/sed/Makefile Tue Mar 27 07:39:00 2012 +0000
@@ -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>
diff -r d0fdc9eea709 -r 753af67ff6c7 tests/usr.bin/sed/d_c2048.in
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/usr.bin/sed/d_c2048.in Tue Mar 27 07:39:00 2012 +0000
@@ -0,0 +1,1 @@
+s/1/abcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabcdefghijabc\/defghij/
diff -r d0fdc9eea709 -r 753af67ff6c7 tests/usr.bin/sed/t_sed.sh
--- a/tests/usr.bin/sed/t_sed.sh Tue Mar 27 07:23:06 2012 +0000
+++ b/tests/usr.bin/sed/t_sed.sh Tue Mar 27 07:39:00 2012 +0000
@@ -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 @@
}
atf_init_test_cases() {
+ atf_add_test_case c2048
atf_add_test_case emptybackref
atf_add_test_case longlines
atf_add_test_case rangeselection
Home |
Main Index |
Thread Index |
Old Index