summaryrefslogtreecommitdiffstats
path: root/Templates/TestDriver.cxx.in
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-05-08 18:55:07 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2004-05-08 18:55:07 (GMT)
commita613100b1e7f17ddcdd8afd3fc5b78412c9e7e3d (patch)
treeffa01b5acd7421f5ca67742bd7233d73d1e93126 /Templates/TestDriver.cxx.in
parent8da9b14cc6e21293507f5384a80caf8e2529f460 (diff)
downloadCMake-a613100b1e7f17ddcdd8afd3fc5b78412c9e7e3d.zip
CMake-a613100b1e7f17ddcdd8afd3fc5b78412c9e7e3d.tar.gz
CMake-a613100b1e7f17ddcdd8afd3fc5b78412c9e7e3d.tar.bz2
BUG: remove debug pop hacks, also remove duplicate call to argvc function
Diffstat (limited to 'Templates/TestDriver.cxx.in')
-rw-r--r--Templates/TestDriver.cxx.in39
1 files changed, 0 insertions, 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 <string.h>
#include <stdlib.h>
-#if defined(_MSC_VER) && defined(_DEBUG)
-/* MSVC debug hook to prevent dialogs when running from DART. */
-# include <crtdbg.h>
-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 <windows.h>
-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. */