diff options
author | sjg <sjg@FreeBSD.org> | 2015-12-08 01:29:07 +0000 |
---|---|---|
committer | sjg <sjg@FreeBSD.org> | 2015-12-08 01:29:07 +0000 |
commit | f25d8749d49c2dac52891bc0b98559f77826a558 (patch) | |
tree | 318e0c200a044475b5d659b07c75b7cdd77b14e1 /contrib/bmake/unit-tests | |
parent | 26eb4f225d52c3489b3178b0095927b181f82178 (diff) | |
download | FreeBSD-src-f25d8749d49c2dac52891bc0b98559f77826a558.zip FreeBSD-src-f25d8749d49c2dac52891bc0b98559f77826a558.tar.gz |
Merge bmake-20151201
Diffstat (limited to 'contrib/bmake/unit-tests')
-rw-r--r-- | contrib/bmake/unit-tests/Makefile.in | 4 | ||||
-rw-r--r-- | contrib/bmake/unit-tests/cond2.mk | 6 | ||||
-rw-r--r-- | contrib/bmake/unit-tests/doterror.exp | 2 | ||||
-rw-r--r-- | contrib/bmake/unit-tests/modts.mk | 4 |
4 files changed, 10 insertions, 6 deletions
diff --git a/contrib/bmake/unit-tests/Makefile.in b/contrib/bmake/unit-tests/Makefile.in index 6974d48..4ee94bd 100644 --- a/contrib/bmake/unit-tests/Makefile.in +++ b/contrib/bmake/unit-tests/Makefile.in @@ -1,4 +1,4 @@ -# $Id: Makefile.in,v 1.47 2015/05/05 21:58:06 sjg Exp $ +# $Id: Makefile.in,v 1.48 2015/12/07 04:06:29 sjg Exp $ # # $NetBSD: Makefile,v 1.52 2015/05/05 21:51:09 sjg Exp $ # @@ -128,7 +128,7 @@ SED_CMDS.varshell = -e 's,^[a-z]*sh: ,,' \ test: ${OUTFILES} .PHONY @failed= ; \ for test in ${TESTNAMES}; do \ - ${TOOL_DIFF} -u ${UNIT_TESTS}/$${test}.exp $${test}.out \ + ${TOOL_DIFF} ${DIFF_FLAGS} ${UNIT_TESTS}/$${test}.exp $${test}.out \ || failed="$${failed}$${failed:+ }$${test}" ; \ done ; \ if [ -n "$${failed}" ]; then \ diff --git a/contrib/bmake/unit-tests/cond2.mk b/contrib/bmake/unit-tests/cond2.mk index d6a0620..943df43 100644 --- a/contrib/bmake/unit-tests/cond2.mk +++ b/contrib/bmake/unit-tests/cond2.mk @@ -1,4 +1,4 @@ -# $Id: cond2.mk,v 1.1.1.1 2015/05/05 21:53:13 sjg Exp $ +# $Id: cond2.mk,v 1.1.1.2 2015/12/02 00:34:27 sjg Exp $ TEST_UNAME_S= NetBSD @@ -21,5 +21,9 @@ Y!= echo TEST_NOT_SET is empty or not defined >&2; echo Y= oops .endif +.if defined(.NDEF) && ${.NDEF} > 0 +Z= yes +.endif + all: @echo $@ diff --git a/contrib/bmake/unit-tests/doterror.exp b/contrib/bmake/unit-tests/doterror.exp index 0447a51..5655644 100644 --- a/contrib/bmake/unit-tests/doterror.exp +++ b/contrib/bmake/unit-tests/doterror.exp @@ -1,9 +1,9 @@ At first, I am happy and now: sad -.ERROR: Looks like 'sad' is upset. *** Error code 1 Stop. make: stopped in unit-tests +.ERROR: Looks like 'sad' is upset. exit status 1 diff --git a/contrib/bmake/unit-tests/modts.mk b/contrib/bmake/unit-tests/modts.mk index 616bd89..54b3d3d 100644 --- a/contrib/bmake/unit-tests/modts.mk +++ b/contrib/bmake/unit-tests/modts.mk @@ -12,9 +12,9 @@ all: mod-ts # Use print or printf iff they are builtin. # XXX note that this causes problems, when make decides # there is no need to use a shell, so avoid where possible. -.if ${type print 2> /dev/null || echo:L:sh:Mbuiltin} != "" +.if ${(type print) 2> /dev/null || echo:L:sh:Mbuiltin} != "" PRINT= print -r -- -.elif ${type printf 2> /dev/null || echo:L:sh:Mbuiltin} != "" +.elif ${(type printf) 2> /dev/null || echo:L:sh:Mbuiltin} != "" PRINT= printf '%s\n' .else PRINT= echo |