xref: /openbsd-src/regress/lib/libc/malloc/malloc_threaderr/Makefile (revision 831fb83333b29e14016f960eaa8b500df29ac08c)
1#	$OpenBSD: Makefile,v 1.2 2018/01/28 14:55:24 otto Exp $
2
3# This test is supposed to print a malloc error and create a core dump
4
5REGRESS_TARGETS=        t1
6PROG=			malloc_threaderr
7LDADD+=			-pthread
8DPADD+=			${LIBPTHREAD}
9
10.include <bsd.regress.mk>
11
12t1:	malloc_threaderr
13	${.OBJDIR}/malloc_threaderr 2>&1 | fgrep 'in free(): bogus pointer (double free?)'
14