summaryrefslogtreecommitdiff
path: root/testapp.c
diff options
context:
space:
mode:
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";