18 int main(
int argc,
char* argv[])
25 CommandLineProcessor clp(
false);
27 bool enableStackTrace =
true;
29 clp.setOption(
"enable-stacktrace",
"no-enable-stacktrace", &enableStackTrace,
30 "Determine if stacktracing is shown or not on exception throw." );
32 CommandLineProcessor::EParseCommandLineReturn parse_return = clp.parse(argc,argv);
34 if( parse_return != CommandLineProcessor::PARSE_SUCCESSFUL ) {
35 std::cerr <<
"\nEnd Result: TEST FAILED" << std::endl;
47 return (success ? 0 : 1);
TEUCHOSCORE_LIB_DLL_EXPORT void TestForException_setEnableStacktrace(bool enableStrackTrace)
Set at runtime if stacktracing functionality is enabled when * exceptions are thrown.
Initialize, finalize, and query the global MPI session.
#define TEUCHOS_STANDARD_CATCH_STATEMENTS(VERBOSE, ERR_STREAM, SUCCESS_FLAG)
Simple macro that catches and reports standard exceptions and other exceptions.
int main(int argc, char *argv[])
A MPI utilities class, providing methods for initializing, finalizing, and querying the global MPI se...
Basic command line parser for input from (argc,argv[])
Class that helps parse command line input arguments from (argc,argv[]) and set options.