Module Name: src
Committed By: rillig
Date: Sat Nov 21 14:59:11 UTC 2020
Modified Files:
src/usr.bin/make/unit-tests: directive-include.mk
Log Message:
make(1): add test for .include with trailing garbage in the line
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/usr.bin/make/unit-tests/directive-include.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/make/unit-tests/directive-include.mk
diff -u src/usr.bin/make/unit-tests/directive-include.mk:1.4 src/usr.bin/make/unit-tests/directive-include.mk:1.5
--- src/usr.bin/make/unit-tests/directive-include.mk:1.4 Tue Nov 3 17:17:31 2020
+++ src/usr.bin/make/unit-tests/directive-include.mk Sat Nov 21 14:59:11 2020
@@ -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:
@:;