diff options
| author | rillig <rillig@NetBSD.org> | 2022-06-12 15:03:27 +0000 |
|---|---|---|
| committer | rillig <rillig@NetBSD.org> | 2022-06-12 15:03:27 +0000 |
| commit | 07bba8efeebfddee0334adc2d4f0fa2c6646d76c (patch) | |
| tree | 09cd0747ce1e98be73ef51b6c09412d1c23bdab8 /usr.bin/make/unit-tests | |
| parent | 727223c67a287d5669f47a32fb35f23a1d6e081b (diff) | |
tests/make: make test for null bytes in .for loop more readable
Diffstat (limited to 'usr.bin/make/unit-tests')
| -rw-r--r-- | usr.bin/make/unit-tests/directive-for-null.mk | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/make/unit-tests/directive-for-null.mk b/usr.bin/make/unit-tests/directive-for-null.mk index be91b4fa83d..fb2d440ee1b 100644 --- a/usr.bin/make/unit-tests/directive-for-null.mk +++ b/usr.bin/make/unit-tests/directive-for-null.mk @@ -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 - |
