CMS 3D CMS Logo

Macros | Functions
TestHelper.h File Reference

Go to the source code of this file.

Macros

#define RUNTEST()
 

Functions

int ptomaine (int argc, char *argv[], char **env)
 

Macro Definition Documentation

#define RUNTEST ( )
Value:
extern "C" char** environ; \
int main(int argc, char* argv[]) { return ptomaine(argc, argv, environ); }
int ptomaine(int argc, char *argv[], char **env)
Definition: TestHelper.cc:183

Definition at line 29 of file TestHelper.h.

Function Documentation

int ptomaine ( int  argc,
char *  argv[],
char **  env 
)

Definition at line 183 of file TestHelper.cc.

References MessageLogger_cfi::cerr, do_work(), cppFunctionSkipper::exception, and vertices_cff::x.

183  {
184  int rc = 1;
185  try {
186  rc = do_work(argc, argv, env);
187  } catch (edm::Exception& x) {
188  std::cerr << "Caught an edm::Exception in " << argv[0] << '\n' << x;
189  } catch (cms::Exception& x) {
190  std::cerr << "Caught a cms::Exception in " << argv[0] << '\n' << x;
191  } catch (std::exception& x) {
192  std::cerr << "Caught a std::exception in " << argv[0] << '\n' << x.what();
193  } catch (...) {
194  std::cerr << "Caught an unknown exception in " << argv[0];
195  }
196  return rc;
197 }
int do_work(int argc, char *argv[], char **env)
Definition: TestHelper.cc:57