diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2010-02-09 06:29:03 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2010-02-09 06:29:03 +0000 |
commit | 7ad7a38e1ef40f8fa0fa8cc3c61fbb0893e44396 (patch) | |
tree | 831c35b366ef51a7ba7f50fe9f4af3c984e7b6d7 /regress | |
parent | ce0ccf435f7bcf69dc0092ba1a80a81525b64622 (diff) |
turn on all the malloc(3) checking options when running regression
tests. this has caught a few bugs for me in the past; ok dtucker@
Diffstat (limited to 'regress')
-rw-r--r-- | regress/usr.bin/ssh/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/regress/usr.bin/ssh/Makefile b/regress/usr.bin/ssh/Makefile index ece4e287dc4..829a3bc754c 100644 --- a/regress/usr.bin/ssh/Makefile +++ b/regress/usr.bin/ssh/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.50 2009/11/09 04:20:04 dtucker Exp $ +# $OpenBSD: Makefile,v 1.51 2010/02/09 06:29:02 djm Exp $ REGRESS_TARGETS= t1 t2 t3 t4 t5 t6 t7 @@ -59,6 +59,9 @@ CLEANFILES+= authorized_keys_${USER} known_hosts pidfile \ scp-ssh-wrapper.exe ssh_proxy_envpass remote_pid \ sshd_proxy_bak rsa_ssh2_cr.prv rsa_ssh2_crnl.prv +# Enable all malloc(3) randomisations and checks +TEST_ENV= "MALLOC_OPTIONS=AFGJPRX" + t1: ssh-keygen -if ${.CURDIR}/rsa_ssh2.prv | diff - ${.CURDIR}/rsa_openssh.prv tr '\n' '\r' <${.CURDIR}/rsa_ssh2.prv > ${.OBJDIR}/rsa_ssh2_cr.prv @@ -99,7 +102,8 @@ t7: t7.out .for t in ${LTESTS} ${INTEROP_TESTS} t-${t}: - env SUDO=${SUDO} sh ${.CURDIR}/test-exec.sh ${.OBJDIR} ${.CURDIR}/${t}.sh + env SUDO=${SUDO} ${TEST_ENV} \ + sh ${.CURDIR}/test-exec.sh ${.OBJDIR} ${.CURDIR}/${t}.sh .endfor .for t in ${LTESTS} |