|
Boost-Commit : |
From: gennadiy.rozental_at_[hidden]
Date: 2008-07-07 01:50:27
Author: rogeeff
Date: 2008-07-07 01:50:26 EDT (Mon, 07 Jul 2008)
New Revision: 47167
URL: http://svn.boost.org/trac/boost/changeset/47167
Log:
Fixes #998
Text files modified:
trunk/libs/test/test/prg_exec_fail2.cpp | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
Modified: trunk/libs/test/test/prg_exec_fail2.cpp
==============================================================================
--- trunk/libs/test/test/prg_exec_fail2.cpp (original)
+++ trunk/libs/test/test/prg_exec_fail2.cpp 2008-07-07 01:50:26 EDT (Mon, 07 Jul 2008)
@@ -1,4 +1,4 @@
-// (C) Copyright Gennadiy Rozental 2001-2007.
+// (C) Copyright Gennadiy Rozental 2001-2008.
// (C) Copyright Beman Dawes 2001.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
@@ -29,8 +29,13 @@
int cpp_main( int, char *[] ) // note the name
{
+#if defined(APPLE) && defined(ppc)
+ printf("The ppc doesn't throw on divice-by-zero. No check.\n");
+ return 1;
+#else
int div = 0;
return 10 / div;
+#endif
}
//____________________________________________________________________________//
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk