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: reduce trailing whitespace
details: https://anonhg.NetBSD.org/src/rev/6a5fc7cb924c
branches: trunk
changeset: 370721:6a5fc7cb924c
user: rillig <rillig%NetBSD.org@localhost>
date: Sun Sep 25 12:51:37 2022 +0000
description:
tests/make: reduce trailing whitespace
diffstat:
usr.bin/make/unit-tests/cmd-errors-jobs.exp | 10 +++++-----
usr.bin/make/unit-tests/cmd-errors-jobs.mk | 12 ++++++------
usr.bin/make/unit-tests/cmd-errors.exp | 10 +++++-----
usr.bin/make/unit-tests/cmd-errors.mk | 12 ++++++------
usr.bin/make/unit-tests/cond-token-plain.exp | 8 ++++----
usr.bin/make/unit-tests/cond-token-plain.mk | 6 +++---
usr.bin/make/unit-tests/varmod-ifelse.exp | 4 ++--
usr.bin/make/unit-tests/varmod-ifelse.mk | 4 ++--
8 files changed, 33 insertions(+), 33 deletions(-)
diffs (187 lines):
diff -r 0d212dc1a99e -r 6a5fc7cb924c usr.bin/make/unit-tests/cmd-errors-jobs.exp
--- a/usr.bin/make/unit-tests/cmd-errors-jobs.exp Sun Sep 25 12:41:46 2022 +0000
+++ b/usr.bin/make/unit-tests/cmd-errors-jobs.exp Sun Sep 25 12:51:37 2022 +0000
@@ -1,9 +1,9 @@
-: undefined eol
+: undefined--eol
make: Unclosed variable "UNCLOSED"
-: unclosed-variable
+: unclosed-variable-
make: Unclosed variable expression (expecting '}') for "UNCLOSED"
-: unclosed-modifier
+: unclosed-modifier-
make: Unknown modifier "Z"
-: unknown-modifier eol
-: end eol
+: unknown-modifier--eol
+: end-eol
exit status 0
diff -r 0d212dc1a99e -r 6a5fc7cb924c usr.bin/make/unit-tests/cmd-errors-jobs.mk
--- a/usr.bin/make/unit-tests/cmd-errors-jobs.mk Sun Sep 25 12:41:46 2022 +0000
+++ b/usr.bin/make/unit-tests/cmd-errors-jobs.mk Sun Sep 25 12:51:37 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: cmd-errors-jobs.mk,v 1.1 2020/12/27 05:11:40 rillig Exp $
+# $NetBSD: cmd-errors-jobs.mk,v 1.2 2022/09/25 12:51:37 rillig Exp $
#
# Demonstrate how errors in variable expansions affect whether the commands
# are actually executed in jobs mode.
@@ -9,24 +9,24 @@
# Undefined variables are not an error. They expand to empty strings.
undefined:
- : $@ ${UNDEFINED} eol
+ : $@-${UNDEFINED}-eol
# XXX: As of 2020-11-01, this command is executed even though it contains
# parse errors.
unclosed-variable:
- : $@ ${UNCLOSED
+ : $@-${UNCLOSED
# XXX: As of 2020-11-01, this command is executed even though it contains
# parse errors.
unclosed-modifier:
- : $@ ${UNCLOSED:
+ : $@-${UNCLOSED:
# XXX: As of 2020-11-01, this command is executed even though it contains
# parse errors.
unknown-modifier:
- : $@ ${UNKNOWN:Z} eol
+ : $@-${UNKNOWN:Z}-eol
end:
- : $@ eol
+ : $@-eol
# XXX: As of 2020-11-02, despite the parse errors, the exit status is 0.
diff -r 0d212dc1a99e -r 6a5fc7cb924c usr.bin/make/unit-tests/cmd-errors.exp
--- a/usr.bin/make/unit-tests/cmd-errors.exp Sun Sep 25 12:41:46 2022 +0000
+++ b/usr.bin/make/unit-tests/cmd-errors.exp Sun Sep 25 12:51:37 2022 +0000
@@ -1,9 +1,9 @@
-: undefined eol
+: undefined--eol
make: Unclosed variable "UNCLOSED"
-: unclosed-variable
+: unclosed-variable-
make: Unclosed variable expression (expecting '}') for "UNCLOSED"
-: unclosed-modifier
+: unclosed-modifier-
make: Unknown modifier "Z"
-: unknown-modifier eol
-: end eol
+: unknown-modifier--eol
+: end-eol
exit status 0
diff -r 0d212dc1a99e -r 6a5fc7cb924c usr.bin/make/unit-tests/cmd-errors.mk
--- a/usr.bin/make/unit-tests/cmd-errors.mk Sun Sep 25 12:41:46 2022 +0000
+++ b/usr.bin/make/unit-tests/cmd-errors.mk Sun Sep 25 12:51:37 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: cmd-errors.mk,v 1.4 2020/12/27 05:11:40 rillig Exp $
+# $NetBSD: cmd-errors.mk,v 1.5 2022/09/25 12:51:37 rillig Exp $
#
# Demonstrate how errors in variable expansions affect whether the commands
# are actually executed in compat mode.
@@ -7,24 +7,24 @@
# Undefined variables are not an error. They expand to empty strings.
undefined:
- : $@ ${UNDEFINED} eol
+ : $@-${UNDEFINED}-eol
# XXX: As of 2020-11-01, this command is executed even though it contains
# parse errors.
unclosed-variable:
- : $@ ${UNCLOSED
+ : $@-${UNCLOSED
# XXX: As of 2020-11-01, this command is executed even though it contains
# parse errors.
unclosed-modifier:
- : $@ ${UNCLOSED:
+ : $@-${UNCLOSED:
# XXX: As of 2020-11-01, this command is executed even though it contains
# parse errors.
unknown-modifier:
- : $@ ${UNKNOWN:Z} eol
+ : $@-${UNKNOWN:Z}-eol
end:
- : $@ eol
+ : $@-eol
# XXX: As of 2020-11-02, despite the parse errors, the exit status is 0.
diff -r 0d212dc1a99e -r 6a5fc7cb924c usr.bin/make/unit-tests/cond-token-plain.exp
--- a/usr.bin/make/unit-tests/cond-token-plain.exp Sun Sep 25 12:41:46 2022 +0000
+++ b/usr.bin/make/unit-tests/cond-token-plain.exp Sun Sep 25 12:51:37 2022 +0000
@@ -9,11 +9,11 @@
CondParser_Eval: ${:U#hash} != #hash
Comparing "#hash" != "#hash"
CondParser_Eval: 0 # This is treated as a comment, but why?
-CondParser_Eval: ${0 # comment :?yes:no} != no
-CondParser_Eval: 0 # comment
+CondParser_Eval: ${0 # comment:?yes:no} != no
+CondParser_Eval: 0 # comment
Comparing "no" != "no"
-CondParser_Eval: ${1 # comment :?yes:no} != yes
-CondParser_Eval: 1 # comment
+CondParser_Eval: ${1 # comment:?yes:no} != yes
+CondParser_Eval: 1 # comment
Comparing "yes" != "yes"
CondParser_Eval: ${UNDEF:Uundefined}!=undefined
Comparing "undefined" != "undefined"
diff -r 0d212dc1a99e -r 6a5fc7cb924c usr.bin/make/unit-tests/cond-token-plain.mk
--- a/usr.bin/make/unit-tests/cond-token-plain.mk Sun Sep 25 12:41:46 2022 +0000
+++ b/usr.bin/make/unit-tests/cond-token-plain.mk Sun Sep 25 12:51:37 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: cond-token-plain.mk,v 1.15 2021/12/30 02:14:55 rillig Exp $
+# $NetBSD: cond-token-plain.mk,v 1.16 2022/09/25 12:51:37 rillig Exp $
#
# Tests for plain tokens (that is, string literals without quotes)
# in .if conditions. These are also called bare words.
@@ -63,10 +63,10 @@
# anybody really use this? This is neither documented nor obvious since
# the '#' is escaped. It's much clearer to write a comment in the line
# above the condition.
-.if ${0 \# comment :?yes:no} != no
+.if ${0 \# comment:?yes:no} != no
. error
.endif
-.if ${1 \# comment :?yes:no} != yes
+.if ${1 \# comment:?yes:no} != yes
. error
.endif
diff -r 0d212dc1a99e -r 6a5fc7cb924c usr.bin/make/unit-tests/varmod-ifelse.exp
--- a/usr.bin/make/unit-tests/varmod-ifelse.exp Sun Sep 25 12:41:46 2022 +0000
+++ b/usr.bin/make/unit-tests/varmod-ifelse.exp Sun Sep 25 12:51:37 2022 +0000
@@ -11,8 +11,8 @@
make: Bad conditional expression '1 == == 2' in '1 == == 2?yes:no'
Comparing "" != ""
make: "varmod-ifelse.mk" line 92: warning: Oops, the parse error should have been propagated.
-CondParser_Eval: ${ ${:U\$}{VAR} == value :?ok:bad} != "ok"
-CondParser_Eval: ${VAR} == value
+CondParser_Eval: ${ ${:U\$}{VAR} == value:?ok:bad} != "ok"
+CondParser_Eval: ${VAR} == value
Comparing "value" == "value"
Comparing "ok" != "ok"
make: "varmod-ifelse.mk" line 153: no.
diff -r 0d212dc1a99e -r 6a5fc7cb924c usr.bin/make/unit-tests/varmod-ifelse.mk
--- a/usr.bin/make/unit-tests/varmod-ifelse.mk Sun Sep 25 12:41:46 2022 +0000
+++ b/usr.bin/make/unit-tests/varmod-ifelse.mk Sun Sep 25 12:51:37 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: varmod-ifelse.mk,v 1.19 2022/05/08 06:51:27 rillig Exp $
+# $NetBSD: varmod-ifelse.mk,v 1.20 2022/09/25 12:51:37 rillig Exp $
#
# Tests for the ${cond:?then:else} variable modifier, which evaluates either
# the then-expression or the else-expression, depending on the condition.
@@ -106,7 +106,7 @@
# from the parser of the .for loop body. See ForLoop_SubstVarLong.
.MAKEFLAGS: -dc
VAR= value
-.if ${ ${:U\$}{VAR} == value :?ok:bad} != "ok"
+.if ${ ${:U\$}{VAR} == value:?ok:bad} != "ok"
. error
.endif
.MAKEFLAGS: -d0
Home |
Main Index |
Thread Index |
Old Index