Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/bin/sh Handle the (very) recent change to printf(1) - ...
details: https://anonhg.NetBSD.org/src/rev/0ebf45dd3534
branches: trunk
changeset: 983403:0ebf45dd3534
user: kre <kre%NetBSD.org@localhost>
date: Wed May 19 22:43:18 2021 +0000
description:
Handle the (very) recent change to printf(1) - when writing to a closed
stdout printf(1) now issues an error message, hence stderr in such cases
should not be empty, rather than should be empty. Adapt to that.
diffstat:
tests/bin/sh/t_redir.sh | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (23 lines):
diff -r fedb523a634d -r 0ebf45dd3534 tests/bin/sh/t_redir.sh
--- a/tests/bin/sh/t_redir.sh Wed May 19 22:41:19 2021 +0000
+++ b/tests/bin/sh/t_redir.sh Wed May 19 22:43:18 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_redir.sh,v 1.10 2018/11/27 09:55:32 kre Exp $
+# $NetBSD: t_redir.sh,v 1.11 2021/05/19 22:43:18 kre Exp $
#
# Copyright (c) 2016 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -866,11 +866,11 @@
${TEST_SH} -c ". ./f-def; f ; printf '%s\n' success1"
atf_check -s exit:0 -o inline:'success2\n' -e empty \
${TEST_SH} -c ". ./f-def; f >/dev/null; printf '%s\n' success2"
- atf_check -s exit:0 -o inline:'success3\n' -e empty \
+ atf_check -s exit:0 -o inline:'success3\n' -e not-empty \
${TEST_SH} -c ". ./f-def; f >&- ; printf '%s\n' success3"
atf_check -s exit:0 -o inline:'In-Func\nsuccess4\n' -e empty \
${TEST_SH} -c ". ./f-def; f & wait; printf '%s\n' success4"
- atf_check -s exit:0 -o inline:'success5\n' -e empty \
+ atf_check -s exit:0 -o inline:'success5\n' -e not-empty \
${TEST_SH} -c ". ./f-def; f >&- & wait; printf '%s\n' success5"
atf_check -s exit:0 -o inline:'In-Func\nIn-Func\nsuccess6\n' -e empty \
${TEST_SH} -c ". ./f-def; f;f; printf '%s\n' success6"
Home |
Main Index |
Thread Index |
Old Index