Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ippUtest.cpp

Go to the documentation of this file.
00001 // 
00002 // DISCLAIMER: 
00003 //  This software was produced by the National Institute of Standards 
00004 //  and Technology (NIST), an agency of the U.S. government, and by statute is 
00005 //  not subject to copyright in the United States.  Recipients of this 
00006 //  software assume all responsibility associated with its operation,
00007 //  modification,maintenance, and subsequent redistribution. 
00008 //
00009 //  See NIST Administration Manual 4.09.07 b and Appendix I. 
00010 #include "ippUtest.h"
00011 
00012 #ifdef _DEBUG
00013 #include "crtdbg.h"
00014 class crtConfigurator
00015 {
00016 public:
00017    crtConfigurator()
00018    {
00019      _CrtSetReportMode(_CRT_ASSERT,_CRTDBG_MODE_DEBUG);
00020      _CrtSetReportHook(crtConfigurator::ReportHook);
00021      CxxTest::setAbortTestOnFail(true);
00022    }
00023   static  int __cdecl ReportHook(int nRptType, char *szOutMessage , int * retval)
00024   {
00025      if (nRptType == _CRT_ASSERT) {
00026         CxxTest::doFailTest(szOutMessage,0,szOutMessage);
00027         return true;
00028      }
00029      return true;
00030   }
00031 
00032 };
00033 
00034 
00035 //xx crtConfigurator  _instance;
00036 
00037 #endif

Generated on Wed Nov 8 00:20:09 2006 for IPPDME by  doxygen 1.4.1