diff options
author | 2011-11-29 04:06:42 +0000 | |
---|---|---|
committer | 2011-11-29 04:06:42 +0000 | |
commit | bf173952a1912592cc13dabd89d3d4ea92a185b0 (patch) | |
tree | 515fe7d9f93e484723d6bf86cb01226ce777655d | |
parent | ld.so initfirst regress test (diff) | |
download | wireguard-openbsd-bf173952a1912592cc13dabd89d3d4ea92a185b0.tar.xz wireguard-openbsd-bf173952a1912592cc13dabd89d3d4ea92a185b0.zip |
Check the destructor order too
-rw-r--r-- | regress/libexec/ld.so/initfirst/prog1/Makefile | 12 | ||||
-rw-r--r-- | regress/libexec/ld.so/initfirst/prog1/expected1 | 3 | ||||
-rw-r--r-- | regress/libexec/ld.so/initfirst/prog1/expected2 | 3 | ||||
-rw-r--r-- | regress/libexec/ld.so/initfirst/prog1/expected3 | 3 | ||||
-rw-r--r-- | regress/libexec/ld.so/initfirst/prog1/expected4 | 3 |
5 files changed, 19 insertions, 5 deletions
diff --git a/regress/libexec/ld.so/initfirst/prog1/Makefile b/regress/libexec/ld.so/initfirst/prog1/Makefile index c42028b9636..06387f568ab 100644 --- a/regress/libexec/ld.so/initfirst/prog1/Makefile +++ b/regress/libexec/ld.so/initfirst/prog1/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.1 2011/11/08 23:51:02 guenther Exp $ +# $OpenBSD: Makefile,v 1.2 2011/11/29 04:06:42 guenther Exp $ PROGS= prog1 prog2 prog3 prog4 SRCS= main.c @@ -12,19 +12,21 @@ LDADD_prog1+= -lnormal -lif1 -lif2 LDADD_prog2+= -lif1 -lnormal -lif2 LDADD_prog3+= -lif1 -lif2 -lnormal LDADD_prog4+= -lif1 -lif2 -lif3 +CLEANFILES+= ${PROGS} REGRESS_TARGETS=do-prog1 do-prog2 do-prog3 do-prog4 do-prog1: prog1 - ./prog1 | grep -v ^fini | cmp -s ${.CURDIR}/expected1 - + ./prog1 | cmp -s ${.CURDIR}/expected1 - do-prog2: prog2 - ./prog2 | grep -v ^fini | cmp -s ${.CURDIR}/expected2 - + ./prog2 | cmp -s ${.CURDIR}/expected2 - do-prog3: prog3 - ./prog3 | grep -v ^fini | cmp -s ${.CURDIR}/expected3 - + ./prog3 | cmp -s ${.CURDIR}/expected3 - do-prog4: prog4 - ./prog4 | grep -v ^fini | cmp -s ${.CURDIR}/expected4 - + ./prog4 | cmp -s ${.CURDIR}/expected4 - .include <bsd.regress.mk> ${PROGS}: ${LIBCRT0} ${OBJS} ${LIBC} ${CRTBEGIN} ${CRTEND} ${DPADD} ${CC} ${LDFLAGS} ${LDSTATIC} -o ${.TARGET} ${OBJS} ${LDADD_${.TARGET}} + diff --git a/regress/libexec/ld.so/initfirst/prog1/expected1 b/regress/libexec/ld.so/initfirst/prog1/expected1 index 56928546182..c0c333dab40 100644 --- a/regress/libexec/ld.so/initfirst/prog1/expected1 +++ b/regress/libexec/ld.so/initfirst/prog1/expected1 @@ -3,3 +3,6 @@ init if2 init normal main func normal +fini normal +fini if1 +fini if2 diff --git a/regress/libexec/ld.so/initfirst/prog1/expected2 b/regress/libexec/ld.so/initfirst/prog1/expected2 index 08cbef24f0e..88a77519df0 100644 --- a/regress/libexec/ld.so/initfirst/prog1/expected2 +++ b/regress/libexec/ld.so/initfirst/prog1/expected2 @@ -3,3 +3,6 @@ init if2 init normal main func if1 +fini normal +fini if1 +fini if2 diff --git a/regress/libexec/ld.so/initfirst/prog1/expected3 b/regress/libexec/ld.so/initfirst/prog1/expected3 index 08cbef24f0e..88a77519df0 100644 --- a/regress/libexec/ld.so/initfirst/prog1/expected3 +++ b/regress/libexec/ld.so/initfirst/prog1/expected3 @@ -3,3 +3,6 @@ init if2 init normal main func if1 +fini normal +fini if1 +fini if2 diff --git a/regress/libexec/ld.so/initfirst/prog1/expected4 b/regress/libexec/ld.so/initfirst/prog1/expected4 index 81cc0318c9b..7b3cd500010 100644 --- a/regress/libexec/ld.so/initfirst/prog1/expected4 +++ b/regress/libexec/ld.so/initfirst/prog1/expected4 @@ -3,3 +3,6 @@ init if2 init if3 main func if1 +fini if1 +fini if2 +fini if3 |