diff options
author | otto <> | 2018-01-28 13:38:00 +0000 |
---|---|---|
committer | otto <> | 2018-01-28 13:38:00 +0000 |
commit | 61b1ba1dd4145a63b5348c8754eca8b7aead54d1 (patch) | |
tree | 78592dd6fe79817838b5f085db92d2dbeaf78365 /src/regress/lib/libc/malloc/malloc_threaderr/Makefile | |
parent | 10dfde59e8d07a40881ee15f9402c6012597422e (diff) | |
download | openbsd-61b1ba1dd4145a63b5348c8754eca8b7aead54d1.tar.gz openbsd-61b1ba1dd4145a63b5348c8754eca8b7aead54d1.tar.bz2 openbsd-61b1ba1dd4145a63b5348c8754eca8b7aead54d1.zip |
Test for correct error when on thread allocates, and another does a double free
Diffstat (limited to 'src/regress/lib/libc/malloc/malloc_threaderr/Makefile')
-rw-r--r-- | src/regress/lib/libc/malloc/malloc_threaderr/Makefile | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/regress/lib/libc/malloc/malloc_threaderr/Makefile b/src/regress/lib/libc/malloc/malloc_threaderr/Makefile new file mode 100644 index 0000000000..ef510adbff --- /dev/null +++ b/src/regress/lib/libc/malloc/malloc_threaderr/Makefile | |||
@@ -0,0 +1,13 @@ | |||
1 | # $OpenBSD: Makefile,v 1.1 2018/01/28 13:38:00 otto Exp $ | ||
2 | |||
3 | # This test is supposed to print a malloc error and create a core dump | ||
4 | |||
5 | REGRESS_TARGETS= t1 | ||
6 | PROG= malloc_threaderr | ||
7 | LDADD+= -pthread | ||
8 | DPADD+= ${LIBPTHREAD} | ||
9 | |||
10 | .include <bsd.regress.mk> | ||
11 | |||
12 | t1: malloc_threaderr | ||
13 | ${.OBJDIR}/malloc_threaderror 2>&1 | fgrep 'in free(): bogus pointer (double free?)' | ||