aboutsummaryrefslogtreecommitdiff
path: root/contrib/bmake/unit-tests/cond-cmp-numeric.mk
diff options
context:
space:
mode:
authorSimon J. Gerraty <sjg@FreeBSD.org>2020-11-20 06:02:31 +0000
committerSimon J. Gerraty <sjg@FreeBSD.org>2020-11-20 06:02:31 +0000
commite2eeea75eb8b6dd50c1298067a0655880d186734 (patch)
tree213e83f0d8e9a7e187083d9c33d8af6651cedeb2 /contrib/bmake/unit-tests/cond-cmp-numeric.mk
parent466d0a2572130a2e393d6fffef5c716a8f867367 (diff)
parent1b65f0bd2bda7121a90f8cb4c1cacaa20f1b681d (diff)
Merge bmake-20201117
o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable checks in InitObjdir. Explicit .OBJDIR target always allows read-only directory. o More code cleanup and refactoring. o More unit tests MFC after: 1 week
Notes
Notes: svn path=/head/; revision=367863
Diffstat (limited to 'contrib/bmake/unit-tests/cond-cmp-numeric.mk')
-rw-r--r--contrib/bmake/unit-tests/cond-cmp-numeric.mk14
1 files changed, 13 insertions, 1 deletions
diff --git a/contrib/bmake/unit-tests/cond-cmp-numeric.mk b/contrib/bmake/unit-tests/cond-cmp-numeric.mk
index 67358ddaf86b..b1ec3e719d47 100644
--- a/contrib/bmake/unit-tests/cond-cmp-numeric.mk
+++ b/contrib/bmake/unit-tests/cond-cmp-numeric.mk
@@ -1,4 +1,4 @@
-# $NetBSD: cond-cmp-numeric.mk,v 1.3 2020/09/12 18:01:51 rillig Exp $
+# $NetBSD: cond-cmp-numeric.mk,v 1.4 2020/11/08 22:56:16 rillig Exp $
#
# Tests for numeric comparisons in .if conditions.
@@ -25,5 +25,17 @@
. error
.endif
+# The parsing code in CondParser_Comparison only performs a light check on
+# whether the operator is valid, leaving the rest of the work to the
+# evaluation functions EvalCompareNum and EvalCompareStr. Ensure that this
+# parse error is properly reported.
+#
+# XXX: The warning message does not mention the actual operator.
+.if 123 ! 123
+. error
+.else
+. error
+.endif
+
all:
@:;