[cgma-dev] r3470 - cgm/trunk/test
kraftche at cae.wisc.edu
kraftche at cae.wisc.edu
Fri Jan 22 10:23:53 CST 2010
Author: kraftche
Date: 2010-01-22 10:23:53 -0600 (Fri, 22 Jan 2010)
New Revision: 3470
Modified:
cgm/trunk/test/brick.cpp
cgm/trunk/test/hollow_acis.cpp
cgm/trunk/test/init.cpp
cgm/trunk/test/makept.cpp
cgm/trunk/test/modify.cpp
cgm/trunk/test/operation.cpp
cgm/trunk/test/r_w.cpp
cgm/trunk/test/test_occ.cpp
Log:
Many of these tests use the 'assert' macro for most of their validity checks.
This is not the best idea because we compile release builds w/out asserts!
Make sure these tests are never compiled w/out asserts.
Modified: cgm/trunk/test/brick.cpp
===================================================================
--- cgm/trunk/test/brick.cpp 2010-01-22 16:19:52 UTC (rev 3469)
+++ cgm/trunk/test/brick.cpp 2010-01-22 16:23:53 UTC (rev 3470)
@@ -1,3 +1,7 @@
+
+#undef NDEBUG
+#include <cassert>
+
#include "GeometryModifyTool.hpp"
#include "GeometryQueryTool.hpp"
#include "ModelQueryEngine.hpp"
@@ -10,7 +14,6 @@
#include "CoEdge.hpp"
#include "InitCGMA.hpp"
-#include <assert.h>
#include <algorithm>
Modified: cgm/trunk/test/hollow_acis.cpp
===================================================================
--- cgm/trunk/test/hollow_acis.cpp 2010-01-22 16:19:52 UTC (rev 3469)
+++ cgm/trunk/test/hollow_acis.cpp 2010-01-22 16:23:53 UTC (rev 3470)
@@ -10,6 +10,9 @@
*
*/
+#undef NDEBUG
+#include <cassert>
+
#include "GeometryModifyTool.hpp"
#include "GeometryQueryTool.hpp"
#include "Body.hpp"
Modified: cgm/trunk/test/init.cpp
===================================================================
--- cgm/trunk/test/init.cpp 2010-01-22 16:19:52 UTC (rev 3469)
+++ cgm/trunk/test/init.cpp 2010-01-22 16:23:53 UTC (rev 3470)
@@ -6,7 +6,6 @@
#include "InitCGMA.hpp"
#include <typeinfo>
-#include <assert.h>
// main program - initialize, then send to proper function
Modified: cgm/trunk/test/makept.cpp
===================================================================
--- cgm/trunk/test/makept.cpp 2010-01-22 16:19:52 UTC (rev 3469)
+++ cgm/trunk/test/makept.cpp 2010-01-22 16:23:53 UTC (rev 3470)
@@ -6,6 +6,10 @@
* This program acts as a simple driver for CGM. It reads in a geometry,
* and performs varies checks for bodies, surfaces, curves and vertices.
*/
+
+#undef NDEBUG
+#include <cassert>
+
#include "GeometryModifyTool.hpp"
#include "GeometryQueryTool.hpp"
#include "CubitMessage.hpp"
Modified: cgm/trunk/test/modify.cpp
===================================================================
--- cgm/trunk/test/modify.cpp 2010-01-22 16:19:52 UTC (rev 3469)
+++ cgm/trunk/test/modify.cpp 2010-01-22 16:23:53 UTC (rev 3470)
@@ -6,6 +6,10 @@
* This program acts as a simple driver for CGM. It reads in a geometry,
* and performs varies checks for bodies, surfaces, curves and vertices.
*/
+
+#undef NDEBUG
+#include <cassert>
+
#include "GeometryModifyTool.hpp"
#include "GeometryQueryTool.hpp"
#include "OCCQueryEngine.hpp"
Modified: cgm/trunk/test/operation.cpp
===================================================================
--- cgm/trunk/test/operation.cpp 2010-01-22 16:19:52 UTC (rev 3469)
+++ cgm/trunk/test/operation.cpp 2010-01-22 16:23:53 UTC (rev 3470)
@@ -6,6 +6,10 @@
* This program acts as a simple driver for CGM. It reads in a geometry,
* and performs varies checks for bodies, surfaces, curves and vertices.
*/
+
+#undef NDEBUG
+#include <cassert>
+
#include "GeometryModifyTool.hpp"
#include "GeometryQueryTool.hpp"
#include "CubitMessage.hpp"
Modified: cgm/trunk/test/r_w.cpp
===================================================================
--- cgm/trunk/test/r_w.cpp 2010-01-22 16:19:52 UTC (rev 3469)
+++ cgm/trunk/test/r_w.cpp 2010-01-22 16:23:53 UTC (rev 3470)
@@ -6,6 +6,10 @@
* This program acts as a simple driver for CGM. It reads in a geometry,
* and performs varies checks for bodies, surfaces, curves and vertices.
*/
+
+#undef NDEBUG
+#include <cassert>
+
#include "GeometryModifyTool.hpp"
#include "GeometryQueryTool.hpp"
#include "CubitMessage.hpp"
Modified: cgm/trunk/test/test_occ.cpp
===================================================================
--- cgm/trunk/test/test_occ.cpp 2010-01-22 16:19:52 UTC (rev 3469)
+++ cgm/trunk/test/test_occ.cpp 2010-01-22 16:23:53 UTC (rev 3470)
@@ -1,3 +1,4 @@
+#undef NDEBUG
#include <cassert>
#include <cstdio>
#include <cstdlib>
More information about the cgma-dev
mailing list