aboutsummaryrefslogtreecommitdiff
path: root/contrib/bmake/unit-tests/opt-file.mk
diff options
context:
space:
mode:
authorSimon J. Gerraty <sjg@FreeBSD.org>2021-12-18 18:09:14 +0000
committerSimon J. Gerraty <sjg@FreeBSD.org>2021-12-18 18:09:14 +0000
commit129043849f62f9cfa72f6fae68417d9995860f3f (patch)
tree176e86d2eced9a37d41d4661fd8f128a56d7befc /contrib/bmake/unit-tests/opt-file.mk
parent7ed5694dd9b9d91e6afd7442b04b602041650354 (diff)
parent2935fe8237c83c1dcb113dd5335733263e68e6fd (diff)
downloadsrc-129043849f62f9cfa72f6fae68417d9995860f3f.tar.gz
src-129043849f62f9cfa72f6fae68417d9995860f3f.zip
Merge bmake-20211212
commit '2935fe8237c83c1dcb113dd5335733263e68e6fd'
Diffstat (limited to 'contrib/bmake/unit-tests/opt-file.mk')
-rw-r--r--contrib/bmake/unit-tests/opt-file.mk12
1 files changed, 8 insertions, 4 deletions
diff --git a/contrib/bmake/unit-tests/opt-file.mk b/contrib/bmake/unit-tests/opt-file.mk
index b7a1c09e6d16..edeff4b9ab11 100644
--- a/contrib/bmake/unit-tests/opt-file.mk
+++ b/contrib/bmake/unit-tests/opt-file.mk
@@ -1,6 +1,7 @@
-# $NetBSD: opt-file.mk,v 1.12 2021/04/04 10:13:09 rillig Exp $
+# $NetBSD: opt-file.mk,v 1.14 2021/12/09 20:47:33 rillig Exp $
#
-# Tests for the -f command line option.
+# Tests for the -f command line option, which adds a makefile to the list of
+# files that are parsed.
# TODO: Implementation
@@ -10,7 +11,8 @@ all: file-ending-in-backslash-mmap
all: line-with-trailing-whitespace
all: file-containing-null-byte
-# Passing '-' as the filename reads from stdin. This is unusual but possible.
+# When the filename is '-', the input comes from stdin. This is unusual but
+# possible.
#
# In the unlikely case where a file ends in a backslash instead of a newline,
# that backslash is trimmed. See ParseGetLine.
@@ -19,7 +21,9 @@ all: file-containing-null-byte
# outside of the file buffer.
#
# printf '%s' 'VAR=value\' \
-# | MALLOC_OPTIONS=JA make-2014.01.01.00.00.00 -r -f - -V VAR -dA 2>&1 \
+# | MALLOC_OPTIONS="JA" \
+# MALLOC_CONF="junk:true" \
+# make-2014.01.01.00.00.00 -r -f - -V VAR -dA 2>&1 \
# | less
#
# The debug output shows how make happily uses freshly allocated memory (the