[Libreoffice-commits] .: sal/cppunittester
Caolán McNamara
caolan at kemper.freedesktop.org
Fri Feb 18 09:08:38 PST 2011
sal/cppunittester/cppunittester.cxx | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
New commits:
commit 49d1e4a472e24e9133e11f440434d8dfc39d9ec9
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri Feb 18 17:08:29 2011 +0000
try harder
diff --git a/sal/cppunittester/cppunittester.cxx b/sal/cppunittester/cppunittester.cxx
index 723f629..47398b8 100644
--- a/sal/cppunittester/cppunittester.cxx
+++ b/sal/cppunittester/cppunittester.cxx
@@ -32,6 +32,11 @@
#include <cstdlib>
#include <iostream>
+#ifdef WNT
+#include <windows.h>
+#endif
+
+
#include "cppunit/CompilerOutputter.h"
#include "cppunit/TestResult.h"
#include "cppunit/TestResultCollector.h"
@@ -46,8 +51,10 @@
#include "sal/main.h"
SAL_IMPLEMENT_MAIN() {
+
#ifdef WNT
- _set_abort_behavior(0, _WRITE_ABORT_MSG);
+ DWORD dwMode = SetErrorMode(SEM_NOGPFAULTERRORBOX);
+ SetErrorMode(SEM_NOGPFAULTERRORBOX|dwMode);
#endif
if (rtl_getAppCommandArgCount() < 1) {
More information about the Libreoffice-commits
mailing list