summaryrefslogtreecommitdiff
path: root/src/regress/lib/libc/malloc/malloc_threaderr/Makefile
blob: 2d715af58bd4b036d23360d3ce82ebd7846482f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#	$OpenBSD: Makefile,v 1.2 2018/01/28 14:55:24 otto Exp $

# This test is supposed to print a malloc error and create a core dump

REGRESS_TARGETS=        t1
PROG=			malloc_threaderr
LDADD+=			-pthread
DPADD+=			${LIBPTHREAD}

.include <bsd.regress.mk>

t1:	malloc_threaderr
	${.OBJDIR}/malloc_threaderr 2>&1 | fgrep 'in free(): bogus pointer (double free?)'