Commits

ssnyder  committed 183455c

Remove gaudi dependency that crept in. Try to fix SEGVHandler test miscompares.

  • Participants
  • Parent commits a4200fd
  • Tags CxxUtils-00-00-29

Comments (0)

Files changed (5)

+2009-04-08  scott snyder  <snyder@bnl.gov>
+
+	* Tagging CxxUtils-00-00-29.
+	* src/Arrayrep.cxx: Remove Gaudi dependency.
+	* test/Arrayrep_test.cxx: Adjust.
+	* test/Array_test.cxx: Adjust.
+	* cmt/requirements: Fix for SEGVHandler test miscompares.
+
 2009-04-07  scott snyder  <snyder@bnl.gov>
 
 	* Tagging CxxUtils-00-00-28.

File cmt/requirements

 use TestTools	   TestTools-*         AtlasTest
 
 apply_pattern UnitTest_run unit_test=PageAccessControl
-apply_pattern UnitTest_run unit_test=SEGVHandler
+apply_pattern UnitTest_run unit_test=SEGVHandler \
+   extrapatterns="page fault|FIXME NOT Freeing memory"
 apply_pattern UnitTest_run unit_test=hashtable
 apply_pattern UnitTest_run unit_test=fpcompare
 apply_pattern UnitTest_run unit_test=procmaps

File src/Arrayrep.cxx

-// $Id: Arrayrep.cxx,v 1.2 2009-04-07 04:26:22 ssnyder Exp $
+// $Id: Arrayrep.cxx,v 1.3 2009-04-08 21:12:44 ssnyder Exp $
 /**
  * @file  Arrayrep.cxx
  * @author scott snyder <snyder@bnl.gov>
 
 #include "CxxUtils/Arrayrep.h"
 #include "CxxUtils/ArrayScanner.h"
-#include "GaudiKernel/GaudiException.h"
+#include <stdexcept>
 #include <cassert>
 #include <sstream>
 
  * @param context Additional context for the error.
  * @param msg The error message to report.
  *
- * Report an error by raising a @c GaudiException.
+ * Report an error by raising a @c std::runtime_error.
  */
 void error (const std::string& context,
             const std::string& msg)
 {
-  throw GaudiException (msg, context, StatusCode::FAILURE);
+  throw std::runtime_error (msg + context);
 }
 
 

File test/Array_test.cxx

-// $Id: Array_test.cxx,v 1.1 2009-03-20 20:44:23 ssnyder Exp $
+// $Id: Array_test.cxx,v 1.2 2009-04-08 21:12:45 ssnyder Exp $
 /**
  * @file  Array_test.cxx
  * @author scott snyder <snyder@bnl.gov>
 
 
 #include "CxxUtils/Array.h"
-#include "GaudiKernel/GaudiException.h"
 #include <cassert>
 
 

File test/Arrayrep_test.cxx

-// $Id: Arrayrep_test.cxx,v 1.1 2009-03-20 20:44:23 ssnyder Exp $
+// $Id: Arrayrep_test.cxx,v 1.2 2009-04-08 21:12:45 ssnyder Exp $
 /**
  * @file  Arrayrep_test.cxx
  * @author scott snyder <snyder@bnl.gov>
 #undef NDEBUG
 
 #include "CxxUtils/Arrayrep.h"
-#include "GaudiKernel/GaudiException.h"
+#include <stdexcept>
 #include <cassert>
 
 
     bool caught = false; \
     try { \
       Arrayrep xx (s); \
-    } catch (GaudiException& c) { \
+    } catch (std::runtime_error& c) {           \
       caught = true; \
-      c.code().ignore();                        \
     } \
     assert (caught); \
   }