mirror of
https://github.com/boostorg/test.git
synced 2026-02-14 13:12:10 +00:00
59 lines
2.8 KiB
HTML
59 lines
2.8 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE>The 'detect memory leaks' parameter</TITLE>
|
|
<LINK rel="stylesheet" type="text/css" href="../../../style/btl.css" media="screen">
|
|
<LINK rel="stylesheet" type="text/css" href="../../../style/btl-print.css" media="print">
|
|
<META http-equiv="Content-Language" content="en-us">
|
|
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
|
</HEAD>
|
|
<BODY>
|
|
<DIV class="header"> <A href="../../../index.html">Boost.Test</A> > <A href="../../index.html">Components</A>
|
|
> <A href="../index.html">The Unit Test Framework</A> > <A href="index.html">Parameters</A>
|
|
> <SPAN class="current_article">Detect memory leaks </SPAN></DIV>
|
|
<DIV class="body"> <IMG src="../../btl1.gif" width="252" height="43" alt="Boost Test logo">
|
|
<H1 class="subtitle">The 'build info' parameter</H1>
|
|
<TABLE class="parameter-table" cellspacing="0">
|
|
<TR>
|
|
<TD class="name"><B>Parameter Name:</B></TD>
|
|
<TD><EM>detect memory leaks </EM></TD>
|
|
</TR>
|
|
<TR>
|
|
<TD class="name"><B>Environment variable name:</B></TD>
|
|
<TD>BOOST_TEST_DETECT_MEMORY_LEAK</TD>
|
|
</TR>
|
|
<TR>
|
|
<TD class="name"><B>Command line argument name:</B></TD>
|
|
<TD>detect_memory_leak</TD>
|
|
</TR>
|
|
<TR>
|
|
<TD class="name"><B>Acceptable Values:</B></TD>
|
|
<TD>0<BR>
|
|
<STRONG>1</STRONG><BR>
|
|
integer value > 1 </TD>
|
|
</TR>
|
|
<TR>
|
|
<TD class="name"><B>Description:</B></TD>
|
|
<TD>positive value tells the framework to detect the memory leaks (if any).
|
|
Any value greater then 1 in addition is treated as leak allocation number
|
|
and setup runtime breakpoint. In other words setting this parameter to
|
|
the positive value N greater than 1 causes the framework to set a breakpoint
|
|
at Nth memory allocation (don't do that from the command line - only when you
|
|
are under debugger). Note: if your test program produce memory leaks
|
|
notifications, they are combined with allocation number values you could
|
|
use to set a breakpoint. Currently only applies to MS family of compilers</TD>
|
|
</TR>
|
|
</TABLE>
|
|
</DIV>
|
|
<DIV class="footer">
|
|
<DIV class="footer-body">
|
|
<P> © <A name="Copyright">Copyright</A> <A href="mailto:boost-test%20at%20emailaccount%20dot%20com%20%28please%20unobscure%29">Gennadiy Rozental</A> 2001-2006. <BR>
|
|
Distributed under the Boost Software License, Version 1.0.
|
|
(See accompanying file <A href="../../../../../../LICENSE_1_0.txt">LICENSE_1_0.txt</A> or copy at
|
|
<A href="http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</A>)</P>
|
|
<P>Revised: <!-- #BeginDate format:Sw1 -->13 July, 2005<!-- #EndDate --> </P>
|
|
</DIV>
|
|
</DIV>
|
|
</BODY>
|
|
</HTML>
|