summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2003-07-04 13:33:48 +0000
committerru <ru@FreeBSD.org>2003-07-04 13:33:48 +0000
commit4360edf5db42a77ef46deb106df65ac60db3dabf (patch)
tree639a48bdc2c6b1829d4a194c0847c8e764e5dd3e /tools
parent3875fcca40a9c1755351e1251d04fec77328ed18 (diff)
downloadFreeBSD-src-4360edf5db42a77ef46deb106df65ac60db3dabf.zip
FreeBSD-src-4360edf5db42a77ef46deb106df65ac60db3dabf.tar.gz
Fixed broken arithmetic expression parser.
Reminded by: bde In memory of: alane
Diffstat (limited to 'tools')
-rw-r--r--tools/build/make_check/Makefile12
-rw-r--r--tools/regression/usr.bin/make/Makefile12
2 files changed, 24 insertions, 0 deletions
diff --git a/tools/build/make_check/Makefile b/tools/build/make_check/Makefile
index 0ae687e..bf26b44 100644
--- a/tools/build/make_check/Makefile
+++ b/tools/build/make_check/Makefile
@@ -41,6 +41,9 @@ all:
@echo "Running test funny_targets"
@${MAKE} funny_targets || ${MAKE} failure
@echo "PASS: Test funny_targets detected no regression."
+ @echo "Running test arith_expr"
+ @${MAKE} arith_expr || ${MAKE} failure
+ @echo "PASS: Test arith_expr detected no regression."
.if make(double)
# Doubly-defined targets. make(1) will warn, but use the "right" one. If it
@@ -90,6 +93,15 @@ colons::target:
exclamation!target:
.endif
+.if make(arith_expr)
+arith_expr:
+# See if arithmetic expression parsing is broken.
+# The different spacing below is intentional.
+VALUE= 0
+.if (${VALUE} < 0)||(${VALUE}>0)
+.endif
+.endif
+
failure:
@echo "FAIL: Test failed: regression detected. See above."
@false
diff --git a/tools/regression/usr.bin/make/Makefile b/tools/regression/usr.bin/make/Makefile
index 0ae687e..bf26b44 100644
--- a/tools/regression/usr.bin/make/Makefile
+++ b/tools/regression/usr.bin/make/Makefile
@@ -41,6 +41,9 @@ all:
@echo "Running test funny_targets"
@${MAKE} funny_targets || ${MAKE} failure
@echo "PASS: Test funny_targets detected no regression."
+ @echo "Running test arith_expr"
+ @${MAKE} arith_expr || ${MAKE} failure
+ @echo "PASS: Test arith_expr detected no regression."
.if make(double)
# Doubly-defined targets. make(1) will warn, but use the "right" one. If it
@@ -90,6 +93,15 @@ colons::target:
exclamation!target:
.endif
+.if make(arith_expr)
+arith_expr:
+# See if arithmetic expression parsing is broken.
+# The different spacing below is intentional.
+VALUE= 0
+.if (${VALUE} < 0)||(${VALUE}>0)
+.endif
+.endif
+
failure:
@echo "FAIL: Test failed: regression detected. See above."
@false
OpenPOWER on IntegriCloud