52 int main(
int argc,
char* argv[])
59 CommandLineProcessor clp(
false);
61 bool enableStackTrace =
true;
63 clp.setOption(
"enable-stacktrace",
"no-enable-stacktrace", &enableStackTrace,
64 "Determine if stacktracing is shown or not on exception throw." );
66 CommandLineProcessor::EParseCommandLineReturn parse_return = clp.parse(argc,argv);
68 if( parse_return != CommandLineProcessor::PARSE_SUCCESSFUL ) {
69 std::cerr <<
"\nEnd Result: TEST FAILED" << std::endl;
81 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.