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 tests/make: make test for null bytes...
details: https://anonhg.NetBSD.org/src/rev/fa7c7151db59
branches: trunk
changeset: 366758:fa7c7151db59
user: rillig <rillig%NetBSD.org@localhost>
date: Sun Jun 12 15:03:27 2022 +0000
description:
tests/make: make test for null bytes in .for loop more readable
diffstat:
usr.bin/make/unit-tests/directive-for-null.mk | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (20 lines):
diff -r 2524f237fa58 -r fa7c7151db59 usr.bin/make/unit-tests/directive-for-null.mk
--- a/usr.bin/make/unit-tests/directive-for-null.mk Sun Jun 12 14:59:44 2022 +0000
+++ b/usr.bin/make/unit-tests/directive-for-null.mk Sun Jun 12 15:03:27 2022 +0000
@@ -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 -
Home |
Main Index |
Thread Index |
Old Index