Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/bin/sh Guard against EVN being set, and possibly refer...
details: https://anonhg.NetBSD.org/src/rev/1a79acd34c38
branches: trunk
changeset: 354035:1a79acd34c38
user: kre <kre%NetBSD.org@localhost>
date: Fri Jun 02 01:38:44 2017 +0000
description:
Guard against EVN being set, and possibly referencing an unset
variable, when we are running tests with sh -u
diffstat:
tests/bin/sh/t_option.sh | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (18 lines):
diff -r 4d409e0a49ff -r 1a79acd34c38 tests/bin/sh/t_option.sh
--- a/tests/bin/sh/t_option.sh Fri Jun 02 01:22:50 2017 +0000
+++ b/tests/bin/sh/t_option.sh Fri Jun 02 01:38:44 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_option.sh,v 1.3 2016/03/08 14:19:28 christos Exp $
+# $NetBSD: t_option.sh,v 1.4 2017/06/02 01:38:44 kre Exp $
#
# Copyright (c) 2016 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -356,6 +356,8 @@
set_u_body() {
test_option_on_off u
+ unset ENV # make sure there is nothing there to cause problems
+
# first make sure it is OK to unset an unset variable
atf_check -s exit:0 -o match:OK -e empty ${TEST_SH} -ce \
'unset _UNSET_VARIABLE_; echo OK'
Home |
Main Index |
Thread Index |
Old Index