Lines Matching +full:12 +full:- +full:byte

1 # $NetBSD: opt-file.mk,v 1.16 2024/04/01 12:26:02 rillig Exp $
3 # Tests for the -f command line option, which adds a makefile to the list of
9 all: file-ending-in-backslash
10 all: file-ending-in-backslash-mmap
11 all: line-with-trailing-whitespace
12 all: file-containing-null-byte
14 # When the filename is '-', the input comes from stdin. This is unusual but
20 # make-2014.01.01.00.00.00 invoked undefined behavior, reading text from
26 # make-2014.01.01.00.00.00 -r -f - -V VAR -dA 2>&1 \
36 # make-2014.01.01.00.00.00: "(stdin)" line 2: Need an operator
40 file-ending-in-backslash: .PHONY
42 | ${MAKE} -r -f - -V VAR
44 # Between parse.c 1.170 from 2010-12-25 and parse.c 1.511 from 2020-12-22,
45 # there was an out-of-bounds write in ParseGetLine, where line_end pointed at
48 file-ending-in-backslash-mmap: .PHONY
49 @printf '%s' 'VAR=value\' > opt-file-backslash
50 @${MAKE} -r -f opt-file-backslash -V VAR
51 @rm opt-file-backslash
53 # Since parse.c 1.511 from 2020-12-22, an assertion in ParseGetLine failed
55 # 1.513, properly fixed in parse.c 1.514 from 2020-12-22.
56 line-with-trailing-whitespace: .PHONY
57 @printf '%s' 'VAR=$@ ' > opt-file-trailing-whitespace
58 @${MAKE} -r -f opt-file-trailing-whitespace -V VAR
59 @rm opt-file-trailing-whitespace
65 # echo 'VAR=value' | tr 'l' '\0' > zero-byte.in
66 # printf '%s\n' 'all:' ': VAR=${VAR:Q}' >> zero-byte.in
70 # make-$year.01.01.00.00.00 -r -f zero-byte.in
82 # make: "(stdin)" line 1: Zero byte read from file
83 # make: Fatal errors encountered -- cannot continue
94 # 2014 to 2020-12-06:
95 # make: "(stdin)" line 1: warning: Zero byte read from file, skipping rest of line.
98 # Since 2020-12-07:
99 # make: "(stdin)" line 1: Zero byte read from file
100 # make: Fatal errors encountered -- cannot continue
104 # Since 2024-04-01:
105 # make: "(stdin)" line 1: Zero byte read from file
107 file-containing-null-byte: .PHONY
110 | ${MAKE} -r -f - -V VAR -V VAR2