From 50c739e7b8c121c3eefed8159f2903fc67da2f21 Mon Sep 17 00:00:00 2001 From: thorpej Date: Tue, 4 Mar 2003 18:00:48 +0000 Subject: [PATCH] Also test the libc atexit routine in the presence of libpthread. --- regress/lib/libpthread/Makefile | 4 ++-- regress/lib/libpthread/atexit/Makefile | 25 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 regress/lib/libpthread/atexit/Makefile diff --git a/regress/lib/libpthread/Makefile b/regress/lib/libpthread/Makefile index 23b7072b043a..7821e04a1ab7 100644 --- a/regress/lib/libpthread/Makefile +++ b/regress/lib/libpthread/Makefile @@ -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 @@ -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 diff --git a/regress/lib/libpthread/atexit/Makefile b/regress/lib/libpthread/atexit/Makefile new file mode 100644 index 000000000000..d380e9414e76 --- /dev/null +++ b/regress/lib/libpthread/atexit/Makefile @@ -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