[EMAIL PROTECTED] wrote:
Author: faridz
Date: Thu Jul 5 11:13:04 2007
New Revision: 553587
URL: http://svn.apache.org/viewvc?view=rev&rev=553587
Log:
2007-07-05 Farid Zaripov <[EMAIL PROTECTED]>
* 0.new.cpp: Catch SIGSEGV signal as SIGABRT.
Why is this necessary?
Martin
Modified:
incubator/stdcxx/trunk/tests/self/0.new.cpp
Modified: incubator/stdcxx/trunk/tests/self/0.new.cpp
URL:
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/self/0.new.cpp?view=diff&rev=553587&r1=553586&r2=553587
==============================================================================
--- incubator/stdcxx/trunk/tests/self/0.new.cpp (original)
+++ incubator/stdcxx/trunk/tests/self/0.new.cpp Thu Jul 5 11:13:04 2007
@@ -61,6 +61,7 @@
#define FAIL(code) \
fail = line = __LINE__; \
signal (SIGABRT, handle_ABRT); \
+ signal (SIGSEGV, handle_ABRT); \
if (0 == setjmp (env)) { \
code; \
exit_status = 1; \
@@ -72,6 +73,7 @@
#define PASS(code) \
fail = -1; line = __LINE__; \
signal (SIGABRT, handle_ABRT); \
+ signal (SIGSEGV, handle_ABRT); \
if (0 == setjmp (env)) { \
code; \
} \