diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2008-11-24 16:22:39 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2008-11-24 16:22:39 +0000 |
commit | 8cd36191e05dbed078b40dda30a251bdff0de82a (patch) | |
tree | bad6d30020f978c29ac78c97d8ee0b9cd6633028 | |
parent | ffa1f16237a0760c0512257307470e18cd9d06fb (diff) |
new regress test, bug from NetBSD
-rw-r--r-- | regress/usr.bin/make/Makefile | 7 | ||||
-rw-r--r-- | regress/usr.bin/make/mk28 | 15 |
2 files changed, 20 insertions, 2 deletions
diff --git a/regress/usr.bin/make/Makefile b/regress/usr.bin/make/Makefile index 734947585a5..bf3bf0855fe 100644 --- a/regress/usr.bin/make/Makefile +++ b/regress/usr.bin/make/Makefile @@ -1,8 +1,8 @@ -# $OpenBSD: Makefile,v 1.27 2007/09/17 13:58:38 espie Exp $ +# $OpenBSD: Makefile,v 1.28 2008/11/24 16:22:38 espie Exp $ # We don't pass t7, t13, t14, t17, t19, t20 t21 t26 # and t16 yields piss poor performance -REGRESS_TARGETS=t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22 t23 t24 t25 t26 t27 t28 t29 t30 +REGRESS_TARGETS=t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20 t21 t22 t23 t24 t25 t26 t27 t28 t29 t30 t31 MALLOC_OPTIONS?=AZJ t1: t1.out @@ -126,6 +126,9 @@ t29: t30: cd ${.CURDIR} && env -i PATH=${PATH} MALLOC_OPTIONS=${MALLOC_OPTIONS} ${MAKE} -r -f mk27 all | diff - t30.out +t31: + cd ${.CURDIR} && env -i PATH=${PATH} MALLOC_OPTIONS=${MALLOC_OPTIONS} ${MAKE} -r -f mk28 all + z.a: touch $@ diff --git a/regress/usr.bin/make/mk28 b/regress/usr.bin/make/mk28 new file mode 100644 index 00000000000..6d3b5a9f52c --- /dev/null +++ b/regress/usr.bin/make/mk28 @@ -0,0 +1,15 @@ +# $OpenBSD: mk28,v 1.1 2008/11/24 16:22:38 espie Exp $ +# checks that hex constants evaluate correctly +# (bug from NetBSD) + +B=222 +.if $B == 0xDE +A=0 +.else +A=1 +.endif + +all: + @exit $A + +.PHONY: all |