Source-Changes-HG archive

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

[src/trunk]: src/tests/usr.bin/sed Prevent the sed command in c2048 from gett...



details:   https://anonhg.NetBSD.org/src/rev/296f4919a833
branches:  trunk
changeset: 785444:296f4919a833
user:      jmmv <jmmv%NetBSD.org@localhost>
date:      Thu Mar 14 06:03:44 2013 +0000

description:
Prevent the sed command in c2048 from getting stuck.

Provide some unused input to the sed command in the c2048 test to prevent
the test from getting stuck waiting for input from stdin that will never
arrive.

I don't know why I'm hitting this now (might be a difference between atf-run
and kyua), but this is a bug in the test.

diffstat:

 tests/usr.bin/sed/t_sed.sh |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 2c4f90a3255d -r 296f4919a833 tests/usr.bin/sed/t_sed.sh
--- a/tests/usr.bin/sed/t_sed.sh        Thu Mar 14 01:23:34 2013 +0000
+++ b/tests/usr.bin/sed/t_sed.sh        Thu Mar 14 06:03:44 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_sed.sh,v 1.4 2012/03/27 07:39:00 jruoho Exp $
+# $NetBSD: t_sed.sh,v 1.5 2013/03/14 06:03:44 jmmv Exp $
 #
 # Copyright (c) 2012 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -36,8 +36,8 @@
 
 c2048_body() {
 
-       atf_check -s exit:0 -o empty -e empty \
-               -x "sed -f $(atf_get_srcdir)/d_c2048.in"
+       atf_check -s exit:0 -o inline:'foo\n' -e empty \
+               -x "echo foo | sed -f $(atf_get_srcdir)/d_c2048.in"
 }
 
 atf_test_case emptybackref



Home | Main Index | Thread Index | Old Index