[m-dev.] diff: use exit() in place of abort() for uncaught exceptions
Peter Ross
peter.ross at miscrit.be
Tue Jul 25 02:49:07 AEST 2000
Hi,
===================================================================
Estimated hours taken: 0.5
exception.m:
MSVC prints "abnormal program termination" when abort() is
called. This causes a lot of test cases to fail. Instead call
exit(EXIT_FAILURE).
Index: exception.m
===================================================================
RCS file: /home/mercury1/repository/mercury/library/exception.m,v
retrieving revision 1.25
diff -u -r1.25 exception.m
--- exception.m 2000/06/26 08:14:55 1.25
+++ exception.m 2000/07/24 16:43:02
@@ -639,7 +639,7 @@
{
if (ML_exception_handler == NULL) {
ML_report_uncaught_exception((MR_Word) exception);
- abort();
+ exit(EXIT_FAILURE);
} else {
#ifdef MR_DEBUG_JMPBUFS
fprintf(stderr, ""throw longjmp %p\\n"",
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to: mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions: mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------
More information about the developers
mailing list