Author: sebor
Date: Thu Jun 21 17:50:55 2007
New Revision: 549653
URL: http://svn.apache.org/viewvc?view=rev&rev=549653
Log:
2007-06-21 Farid Zaripov <[EMAIL PROTECTED]>
* 18.exception.cpp (RW_SETJMP, RW_LONGJMP): Corrected logic errors
introduced in r548112 and used setjmp() and longjmp() as opposed to
sigsetjmp() and siglongjmp() except on Linux.
Modified:
incubator/stdcxx/trunk/tests/support/18.exception.cpp
Modified: incubator/stdcxx/trunk/tests/support/18.exception.cpp
URL:
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/support/18.exception.cpp?view=diff&rev=549653&r1=549652&r2=549653
==============================================================================
--- incubator/stdcxx/trunk/tests/support/18.exception.cpp (original)
+++ incubator/stdcxx/trunk/tests/support/18.exception.cpp Thu Jun 21 17:50:55
2007
@@ -57,14 +57,18 @@
# include <setjmp.h> // for siglongjmp(), sigsetjmp()
# define RW_JMP_BUF jmp_buf
-# define RW_SETJMP(env) sigsetjmp (env, SIGABRT)
+# define RW_SETJMP(env) sigsetjmp (env, 0)
# define RW_LONGJMP(env, val) siglongjmp (env, val)
#else // if !defined (_RWSTD_OS_LINUX)
# include <csetjmp> // for longjmp(), setjmp()
# define RW_JMP_BUF std::jmp_buf
-# define RW_SETJMP(env) std::sigsetjmp (env, SIGABRT)
-# define RW_LONGJMP(env, val) std::siglongjmp (env, val)
+# ifdef setjmp
+# define RW_SETJMP(env) setjmp (env)
+# else
+# define RW_SETJMP(env) std::setjmp (env)
+# endif
+# define RW_LONGJMP(env, val) std::longjmp (env, val)
#endif // _RWSTD_OS_LINUX
/**************************************************************************/