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 Always use -r -f /dev/null when not ...



details:   https://anonhg.NetBSD.org/src/rev/0ebae01f4cb9
branches:  trunk
changeset: 946138:0ebae01f4cb9
user:      sjg <sjg%NetBSD.org@localhost>
date:      Wed Nov 18 01:06:59 2020 +0000

description:
Always use -r -f /dev/null when not  intending to read a makefile

diffstat:

 usr.bin/make/unit-tests/opt.exp |  2 +-
 usr.bin/make/unit-tests/opt.mk  |  4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r cc64d9bf1fd8 -r 0ebae01f4cb9 usr.bin/make/unit-tests/opt.exp
--- a/usr.bin/make/unit-tests/opt.exp   Tue Nov 17 20:49:12 2020 +0000
+++ b/usr.bin/make/unit-tests/opt.exp   Wed Nov 18 01:06:59 2020 +0000
@@ -1,4 +1,4 @@
-make -V MAKEFLAGS
+make -r -f /dev/null -V MAKEFLAGS
  -r -k -d 0 
 
 make -:
diff -r cc64d9bf1fd8 -r 0ebae01f4cb9 usr.bin/make/unit-tests/opt.mk
--- a/usr.bin/make/unit-tests/opt.mk    Tue Nov 17 20:49:12 2020 +0000
+++ b/usr.bin/make/unit-tests/opt.mk    Wed Nov 18 01:06:59 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: opt.mk,v 1.5 2020/11/15 06:19:34 rillig Exp $
+# $NetBSD: opt.mk,v 1.6 2020/11/18 01:06:59 sjg Exp $
 #
 # Tests for the command line options.
 
@@ -8,7 +8,7 @@
        # The options from the top-level make are passed to the sub-makes via
        # the environment variable MAKEFLAGS.  This is where the " -r -k -d 0"
        # comes from.  See MainParseArg.
-       ${MAKE} -V MAKEFLAGS
+       ${MAKE} -r -f /dev/null -V MAKEFLAGS
        @echo
 
        # Just to see how the custom argument parsing code reacts to a syntax



Home | Main Index | Thread Index | Old Index