Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > main-release > by-pkgid > d149d6e87624e062cde6dca0f8816aea > files > 908

boost-examples-1.34.1-4mdv2008.1.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<HTML>
<HEAD>
<TITLE>Boost Test Library: unit_test_example2 example</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> &gt; <A href="index.html">Examples</A> &gt; <SPAN class="current_article">unit_test_example2</SPAN> 
</DIV>
<DIV class="body"> <IMG src="../btl1.gif" width="252" height="43" alt="Boost Test logo"> 
  <H1 class="subtitle">The Unit Test Framework example 2</H1>
  <TABLE class="test-example-summary">
    <TR>
      <TD class="title" valign="top">Rationale:</TD>
      <TD>to demonstrate 
        <UL>
          <LI>an ability to construct multi-test case test suites</LI>
          <LI>an ability of the Unit Test Framework to catch system level errors like floating point exceptions 
            or dead loop</LI>
          <LI>usage of BOOST_CHECKPOINT test tool to mark exception risky places</LI>
        </UL>
      </TD>
    </TR>
    <TR>
      <TD class="title" valign="top">Input:</TD>
      <TD>This example does not require any input</TD>
    </TR>
    <TR>
      <TD class="title" valign="top">Output:</TD>
      <TD>The output depends on whether or not your system support setting test case timeout. For Win32 
        it will look like this:<BR>
        <SPAN class="test-output">Running 2 test case...<BR>
        Exception in &quot;force_division_by_zero&quot;: integer divide by zero<BR>
        .../unit_test_example2.cpp(16) : last checkpoint: About to force division by zero!<BR>
        <BR>
        *** errors detected in test suite &quot;Unit test example 2&quot;; see standard output for details </SPAN>      </TD>
    </TR>
    <TR>
      <TD class="title" valign="top">Source:</TD>
      <TD><A href="../../example/unit_test_example2.cpp">unit_test_example2.cpp</A></TD>
    </TR>
  </TABLE>
</DIV>
<DIV class="footer"> 
  <DIV class="footer-body"> 
    <P> &copy; <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 -->28 February, 2006<!-- #EndDate -->     </P>
  </DIV>
</DIV>
</BODY>
</HTML>