From 6d3ca9de2cc64f618dbe9c0cbbcca496ed241eba Mon Sep 17 00:00:00 2001 From: Juli Mallett Date: Sun, 21 Apr 2002 00:41:37 +0000 Subject: [PATCH] Check to see if make(1)'s handling of doubly-defined targets is busted or not. A lot relies on this. --- tools/build/make_check/Makefile | 11 +++++++++++ tools/regression/usr.bin/make/Makefile | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/tools/build/make_check/Makefile b/tools/build/make_check/Makefile index 97ecdb5897b5..9b65f9051677 100644 --- a/tools/build/make_check/Makefile +++ b/tools/build/make_check/Makefile @@ -14,6 +14,17 @@ all: @echo 1:${DATA1} 2:${DATA2} 3:${DATA3} 4:${DATA4} 5:${DATA5} | \ diff -u ${.CURDIR}/regress.variables.out - || ${MAKE} failure @echo "Test variables detected no regression, output matches." + @echo "Running test targets" + @${MAKE} double || ${MAKE} failure + @echo "Test targets detected no regression." + +# Doubly-defined targets. NetBSD make(1) will warn, ours will silently use the +# ``right'' one. +double: + @true + +double: + @false failure: @echo "Test failed: regression detected. See above." diff --git a/tools/regression/usr.bin/make/Makefile b/tools/regression/usr.bin/make/Makefile index 97ecdb5897b5..9b65f9051677 100644 --- a/tools/regression/usr.bin/make/Makefile +++ b/tools/regression/usr.bin/make/Makefile @@ -14,6 +14,17 @@ all: @echo 1:${DATA1} 2:${DATA2} 3:${DATA3} 4:${DATA4} 5:${DATA5} | \ diff -u ${.CURDIR}/regress.variables.out - || ${MAKE} failure @echo "Test variables detected no regression, output matches." + @echo "Running test targets" + @${MAKE} double || ${MAKE} failure + @echo "Test targets detected no regression." + +# Doubly-defined targets. NetBSD make(1) will warn, ours will silently use the +# ``right'' one. +double: + @true + +double: + @false failure: @echo "Test failed: regression detected. See above."