Add a test for what was broken in rev. 1.28 and fixed in rev. 1.29
of make/str.c.
This commit is contained in:
@@ -50,6 +50,9 @@ all:
|
||||
@echo "Running test double_quotes"
|
||||
@${MAKE} double_quotes || ${MAKE} failure
|
||||
@echo "PASS: Test double_quotes detected no regression."
|
||||
@echo "Running test double_quotes2"
|
||||
@! ${MAKE} double_quotes2 >/dev/null 2>&1 && true || ${MAKE} failure
|
||||
@echo "PASS: Test double_quotes2 detected no regression."
|
||||
|
||||
.if make(double)
|
||||
# Doubly-defined targets. make(1) will warn, but use the "right" one. If it
|
||||
@@ -124,6 +127,11 @@ double_quotes:
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.if make(double_quotes2)
|
||||
double_quotes2:
|
||||
@cat /dev/null ""
|
||||
.endif
|
||||
|
||||
failure:
|
||||
@echo "FAIL: Test failed: regression detected. See above."
|
||||
@false
|
||||
|
||||
@@ -50,6 +50,9 @@ all:
|
||||
@echo "Running test double_quotes"
|
||||
@${MAKE} double_quotes || ${MAKE} failure
|
||||
@echo "PASS: Test double_quotes detected no regression."
|
||||
@echo "Running test double_quotes2"
|
||||
@! ${MAKE} double_quotes2 >/dev/null 2>&1 && true || ${MAKE} failure
|
||||
@echo "PASS: Test double_quotes2 detected no regression."
|
||||
|
||||
.if make(double)
|
||||
# Doubly-defined targets. make(1) will warn, but use the "right" one. If it
|
||||
@@ -124,6 +127,11 @@ double_quotes:
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.if make(double_quotes2)
|
||||
double_quotes2:
|
||||
@cat /dev/null ""
|
||||
.endif
|
||||
|
||||
failure:
|
||||
@echo "FAIL: Test failed: regression detected. See above."
|
||||
@false
|
||||
|
||||
Reference in New Issue
Block a user