From a613100b1e7f17ddcdd8afd3fc5b78412c9e7e3d Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Sat, 8 May 2004 14:55:07 -0400 Subject: BUG: remove debug pop hacks, also remove duplicate call to argvc function --- Templates/TestDriver.cxx.in | 39 --------------------------------------- 1 file changed, 39 deletions(-) diff --git a/Templates/TestDriver.cxx.in b/Templates/TestDriver.cxx.in index 4f0bcc6..21ab970 100644 --- a/Templates/TestDriver.cxx.in +++ b/Templates/TestDriver.cxx.in @@ -3,36 +3,6 @@ #include #include -#if defined(_MSC_VER) && defined(_DEBUG) -/* MSVC debug hook to prevent dialogs when running from DART. */ -# include -static int TestDriverDebugReport(int type, char* message, int* retVal) -{ - (void)type; (void)retVal; - fprintf(stderr, message); - exit(1); -} -#endif - -#if defined(_WIN32) && !defined(__CYGWIN__) -# include -static LONG __stdcall -TestDriverUnhandledExceptionFilter(EXCEPTION_POINTERS* e) -{ - ExitProcess(e->ExceptionRecord->ExceptionCode); -} -static void TestDriverEnableWindowsExceptionFilter() -{ - if(getenv("DART_TEST_FROM_DART")) - { - SetUnhandledExceptionFilter(&TestDriverUnhandledExceptionFilter); - } -} -#else -static void TestDriverEnableWindowsExceptionFilter() -{ -} -#endif @CMAKE_TESTDRIVER_EXTRA_INCLUDES@ @@ -83,21 +53,12 @@ int main(int ac, char *av[]) @CMAKE_TESTDRIVER_ARGVC_FUNCTION@ -#if defined(_MSC_VER) && defined(_DEBUG) - /* If running from DART, put in debug hook. */ - if(getenv("DART_TEST_FROM_DART")) - { - _CrtSetReportHook(TestDriverDebugReport); - } -#endif - TestDriverEnableWindowsExceptionFilter(); for(count =0; cmakeGeneratedFunctionMapEntries[count].name != 0; count++) { } NumTests = count; /* If no test name was given */ /* process command line with user function. */ - @CMAKE_TESTDRIVER_ARGVC_FUNCTION@ if (ac < 2) { /* Ask for a test. */ -- cgit v0.12