Author: rhuijben
Date: Fri Apr 2 09:00:00 2010
New Revision: 930191
URL: http://svn.apache.org/viewvc?rev=930191&view=rev
Log:
* subversion/libsvn_subr/cmdline.c
(svn_cmdline_init): On Windows disable the abort dialog from the Visual
C++ runtime for our commandline tools, by redirecting the information
to stderr. This allows the testsuite to continue without user
interaction after all exceptions.
Modified:
subversion/trunk/subversion/libsvn_subr/cmdline.c
Modified: subversion/trunk/subversion/libsvn_subr/cmdline.c
URL:
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/cmdline.c?rev=930191&r1=930190&r2=930191&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/cmdline.c (original)
+++ subversion/trunk/subversion/libsvn_subr/cmdline.c Fri Apr 2 09:00:00 2010
@@ -124,7 +124,17 @@ svn_cmdline_init(const char *progname, F
#ifdef SVN_USE_WIN32_CRASHHANDLER
/* Attach (but don't load) the crash handler */
SetUnhandledExceptionFilter(svn__unhandled_exception_filter);
-#endif
+
+#if _MSC_VER >= 1400
+ /* ### Does this work for older MSC versions? */
+ /* Show the abort message on STDERR instead of a dialog to allow
+ scripts (e.g. our testsuite) to continue after an abort without
+ user intervention. Allow overriding for easier debugging. */
+ if (!getenv("SVN_CMDLINE_USE_DIALOG_FOR_ABORT"))
+ _set_error_mode(_OUT_TO_STDERR);
+#endif /* _MSC_VER >= 1400 */
+
+#endif /* SVN_USE_WIN32_CRASHHANDLER */
#endif /* WIN32 */