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): add test for .include with ...



details:   https://anonhg.NetBSD.org/src/rev/a73fb0db9794
branches:  trunk
changeset: 957187:a73fb0db9794
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Nov 21 14:59:11 2020 +0000

description:
make(1): add test for .include with trailing garbage in the line

diffstat:

 usr.bin/make/unit-tests/directive-include.mk |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r f0c61c6faa14 -r a73fb0db9794 usr.bin/make/unit-tests/directive-include.mk
--- a/usr.bin/make/unit-tests/directive-include.mk      Sat Nov 21 13:20:12 2020 +0000
+++ b/usr.bin/make/unit-tests/directive-include.mk      Sat Nov 21 14:59:11 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: directive-include.mk,v 1.4 2020/11/03 17:17:31 rillig Exp $
+# $NetBSD: directive-include.mk,v 1.5 2020/11/21 14:59:11 rillig Exp $
 #
 # Tests for the .include directive, which includes another file.
 
@@ -27,5 +27,8 @@
 # including a directory technically succeeds, but shouldn't.
 #.include "."                  # directory
 
+# As of 2020-11-21, anything after the delimiter '"' is ignored.
+.include "/dev/null" and ignore anything in the rest of the line.
+
 all:
        @:;



Home | Main Index | Thread Index | Old Index