Run malloc0test with all possible malloc options.
authorbluhm <bluhm@openbsd.org>
Sat, 8 Jul 2017 00:08:26 +0000 (00:08 +0000)
committerbluhm <bluhm@openbsd.org>
Sat, 8 Jul 2017 00:08:26 +0000 (00:08 +0000)
regress/lib/libc/malloc/malloc0test/Makefile

index 8ed8163..fc2295c 100644 (file)
@@ -1,5 +1,11 @@
-#      $OpenBSD: Makefile,v 1.1 2003/07/15 10:09:37 otto Exp $
+#      $OpenBSD: Makefile,v 1.2 2017/07/08 00:08:26 bluhm Exp $
 
 PROG=  malloc0test
 
+.for m in C D F G J j R S U X << >>>
+REGRESS_TARGETS +=     run-regress-${PROG}-${m:S/</-/g:S/>/+/g}
+run-regress-${PROG}-${m:S/</-/g:S/>/+/g}: ${PROG}
+       MALLOC_OPTIONS='${m}' ./${PROG}
+.endfor
+
 .include <bsd.regress.mk>