Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make/unit-tests make(1): set more predictable enviro...
details: https://anonhg.NetBSD.org/src/rev/5893432eb669
branches: trunk
changeset: 936743:5893432eb669
user: rillig <rillig%NetBSD.org@localhost>
date: Sun Aug 02 22:43:14 2020 +0000
description:
make(1): set more predictable environment for counter test
Having an environment variable or a global variable called "C" would
change the debug output since an existing variable is not set to the
empty value first. See parse.c, keyword "!Var_Exists".
diffstat:
usr.bin/make/unit-tests/Makefile | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 0601edb68662 -r 5893432eb669 usr.bin/make/unit-tests/Makefile
--- a/usr.bin/make/unit-tests/Makefile Sun Aug 02 20:39:52 2020 +0000
+++ b/usr.bin/make/unit-tests/Makefile Sun Aug 02 22:43:14 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.81 2020/08/02 14:53:02 rillig Exp $
+# $NetBSD: Makefile,v 1.82 2020/08/02 22:43:14 rillig Exp $
#
# Unit tests for make(1)
#
@@ -85,6 +85,7 @@
TESTS+= varshell
# Override environment variables for some of the tests.
+ENV.counter= -i
ENV.envfirst= FROM_ENV=value-from-env
ENV.export= -i PATH=${PATH:Q}
ENV.varmisc= FROM_ENV=env
@@ -92,7 +93,7 @@
ENV.varmisc+= FROM_ENV_AFTER=env
# Override make flags for some of the tests; default is -k.
-FLAGS.counter= -dv
+FLAGS.counter= -r -dv
FLAGS.doterror= # none
FLAGS.envfirst= -e
FLAGS.export= -r
Home |
Main Index |
Thread Index |
Old Index