summaryrefslogtreecommitdiff
path: root/testapp.c
diff options
context:
space:
mode:
authorTrond Norbye <Trond.Norbye@sun.com>2009-08-21 08:37:57 +0200
committerDustin Sallings <dustin@spy.net>2009-08-22 23:38:12 -0700
commit89d5126bdb65fa9bcc945dd77fdf71261becd72e (patch)
tree4f67eb78d5e3b4da98ab2ea708746e5322d62844 /testapp.c
parentb416a193b56e597bc94955cb19f562f94f31e972 (diff)
downloadmemcached-89d5126bdb65fa9bcc945dd77fdf71261becd72e.tar.gz
Issue #77: Bug in the realloc code caused the previous allocated buffer to be reused...
Diffstat (limited to 'testapp.c')
-rw-r--r--testapp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/testapp.c b/testapp.c
index d93f1e2..388a454 100644
--- a/testapp.c
+++ b/testapp.c
@@ -268,6 +268,11 @@ static pid_t start_server(in_port_t *port_out, bool daemon) {
char *argv[20];
int arg = 0;
putenv(environment);
+#ifdef __sun
+ putenv("LD_PRELOAD=watchmalloc.so.1");
+ putenv("MALLOC_DEBUG=WATCH");
+#endif
+
if (!daemon) {
argv[arg++] = "./timedrun";
argv[arg++] = "15";