Commit 26a33621 authored by Michael Sweet's avatar Michael Sweet

Add some debug hooks to check for memory leaks, etc.

parent 6ac1fb23
......@@ -708,8 +708,19 @@ main(int argc, /* I - Number of command-line args */
}
}
/*
* Debug hooks...
*/
if (getenv("TEST_DELAY") != NULL)
sleep(atoi(getenv("TEST_DELAY")));
if (getenv("TEST_LEAKS") != NULL)
{
char command[1024];
snprintf(command, sizeof(command), "leaks %d", (int)getpid());
system(command);
}
/*
* Return...
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment