Boost logo

Boost-Commit :

From: gennadiy.rozental_at_[hidden]
Date: 2007-11-22 14:44:12


Author: rogeeff
Date: 2007-11-22 14:44:12 EST (Thu, 22 Nov 2007)
New Revision: 41304
URL: http://svn.boost.org/trac/boost/changeset/41304

Log:
Try to make it work in release build
Text files modified:
   trunk/libs/test/test/prg_exec_fail3.cpp | 14 +++++++++++---
   1 files changed, 11 insertions(+), 3 deletions(-)

Modified: trunk/libs/test/test/prg_exec_fail3.cpp
==============================================================================
--- trunk/libs/test/test/prg_exec_fail3.cpp (original)
+++ trunk/libs/test/test/prg_exec_fail3.cpp 2007-11-22 14:44:12 EST (Thu, 22 Nov 2007)
@@ -17,11 +17,19 @@
 
 int cpp_main( int, char *[] ) // note the name
 {
- int div = 0;
+ int div = 0;
 
- assert( div != 0 );
+ assert( div != 0 );
 
- return 0;
+#if NDEBUG
+
+# pragma message("assert check turned off under NDEBUG")
+
+ return 1;
+
+#endif
+
+ return 0;
 }
 
 //____________________________________________________________________________//


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