stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Sebor <se...@roguewave.com>
Subject Re: svn commit: r553587 - /incubator/stdcxx/trunk/tests/self/0.new.cpp
Date Wed, 11 Jul 2007 19:25:28 GMT
faridz@apache.org 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 <Farid_Zaripov@epam.com>
> 
> 	* 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;                                                   \
>      }                                                           \
> 
> 


Mime
View raw message