Also test the libc atexit routine in the presence of libpthread.

This commit is contained in:
thorpej 2003-03-04 18:00:48 +00:00
parent b1b04fbfdf
commit 50c739e7b8
2 changed files with 27 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.11 2003/03/01 01:46:02 lha Exp $
# $NetBSD: Makefile,v 1.12 2003/03/04 18:00:48 thorpej Exp $
.include <bsd.own.mk>
@ -15,7 +15,7 @@ ARCHSUBDIR= ${MACHINE_CPU}
.if defined(ARCHSUBDIR)
SUBDIR+= barrier1 cond1 cond2 cond3 cond4 cond5 \
SUBDIR+= atexit barrier1 cond1 cond2 cond3 cond4 cond5 \
mutex1 mutex2 mutex3 mutex4 name once1 once2 sem \
sigsuspend

View File

@ -0,0 +1,25 @@
# $NetBSD: Makefile,v 1.1 2003/03/04 18:00:49 thorpej Exp $
NOMAN= # defined
PROG= atexit
ATEXITDIR= ${.CURDIR}/../../libc/atexit
.PATH: ${ATEXITDIR}
# Note: this test relies on being dynamically linked. You will get a
# spurious PASS for a statically linked test.
DPADD+= ${LIBPTHREAD}
LDADD+= -lpthread
CLEANFILES+= output
regress: ${PROG}
./${PROG} > output
if cmp ${ATEXITDIR}/expected output; then \
echo PASSED; \
else \
echo FAILED; exit 1; \
fi
.include <bsd.prog.mk>