diff options
Diffstat (limited to 'tools/build/make_check/Makefile')
-rw-r--r-- | tools/build/make_check/Makefile | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/build/make_check/Makefile b/tools/build/make_check/Makefile index e7bede7..044c0c3 100644 --- a/tools/build/make_check/Makefile +++ b/tools/build/make_check/Makefile @@ -47,6 +47,9 @@ all: @echo "Running test PATH_exists" @${MAKE} PATH_exists || ${MAKE} failure @echo "PASS: Test PATH_exists detected no regression." + @echo "Running test double_quotes" + @${MAKE} double_quotes || ${MAKE} failure + @echo "PASS: Test double_quotes detected no regression." .if make(double) # Doubly-defined targets. make(1) will warn, but use the "right" one. If it @@ -113,6 +116,14 @@ PATH_exists: .endif .endif +.if make(double_quotes) +VALUE= foo "" +double_quotes: +.if ${VALUE:S/$//} != ${VALUE} +.error "" reduced to " +.endif +.endif + failure: @echo "FAIL: Test failed: regression detected. See above." @false |