Module Name: src
Committed By: rillig
Date: Sun Jun 12 15:03:27 UTC 2022
Modified Files:
src/usr.bin/make/unit-tests: directive-for-null.mk
Log Message:
tests/make: make test for null bytes in .for loop more readable
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/usr.bin/make/unit-tests/directive-for-null.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-for-null.mk
diff -u src/usr.bin/make/unit-tests/directive-for-null.mk:1.2 src/usr.bin/make/unit-tests/directive-for-null.mk:1.3
--- src/usr.bin/make/unit-tests/directive-for-null.mk:1.2 Sun May 8 06:51:27 2022
+++ src/usr.bin/make/unit-tests/directive-for-null.mk Sun Jun 12 15:03:27 2022
@@ -1,4 +1,4 @@
-# $NetBSD: directive-for-null.mk,v 1.2 2022/05/08 06:51:27 rillig Exp $
+# $NetBSD: directive-for-null.mk,v 1.3 2022/06/12 15:03:27 rillig Exp $
#
# Test for parsing a .for loop that accidentally contains a null byte.
#
@@ -15,5 +15,9 @@
# line that contains a null byte is line 2.
all: .PHONY
- @printf '%s\n' '.for i in 1 2 3' 'VAR=value' '.endfor' | tr 'l' '\0' \
+ @printf '%s\n' \
+ '.for i in 1 2 3' \
+ 'VAR=value' \
+ '.endfor' \
+ | tr 'l' '\0' \
| ${MAKE} -f -