Skip to content

Commit

Permalink
Merge pull request #44620 from Dr15Jones/revert-44590-abortMethodSetter
Browse files Browse the repository at this point in the history
Revert "Temporary: abort if cutParser fails to find methods"
  • Loading branch information
cmsbuild authored Apr 19, 2024
2 parents c4ee22a + 18a89b9 commit 3fb8b0e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
5 changes: 0 additions & 5 deletions CommonTools/Utils/src/MethodSetter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@

#include <string>

//DEBUG THREADING PROBLEM
#include <cstdlib>

using namespace reco::parser;
using namespace std;

Expand Down Expand Up @@ -124,8 +121,6 @@ bool MethodSetter::push(const string& name, const vector<AnyMethodArgument>& arg
// Not a data member either, fatal error, throw.
switch (error) {
case reco::parser::kNameDoesNotExist: {
//DEBUG THREADING ISSUE
std::abort();
Exception ex(begin);
ex << "no method or data member named \"" << name << "\" found for type \"" << type.name() << "\"\n";
// The following information is for temporary debugging only, intended to be removed later
Expand Down
3 changes: 0 additions & 3 deletions CommonTools/Utils/test/testCutParser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,6 @@ void testCutParser::checkAll() {

// check handling of errors
// first those who are the same in lazy and non lazy parsing
//DEBUG FOR THREADING
/*
for (int lazy = 0; lazy <= 1; ++lazy) {
sel.reset();
CPPUNIT_ASSERT(!reco::parser::cutParser<reco::Track>("1abc", sel, lazy));
Expand Down Expand Up @@ -222,7 +220,6 @@ void testCutParser::checkAll() {

sel.reset();
CPPUNIT_ASSERT_THROW(reco::parser::cutParser<reco::Track>("quality('notAnEnum')", sel, false), edm::Exception);
*/ //DEBUG ENDING

// check hits (for re-implemented virtual functions and exception handling)
CPPUNIT_ASSERT(hitOk.hasPositionAndError());
Expand Down

0 comments on commit 3fb8b0e

Please sign in to comment.