enables our exception handling and disables gtest's
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -99,10 +99,14 @@ namespace AZ
|
||||
|
||||
void ApplyGlobalParameters(int* argc, char** argv)
|
||||
{
|
||||
// this is a hook that can be used to apply any other global non-google parameters
|
||||
// that we use.
|
||||
// this is a hook that can be used to apply any other global parameters that we use.
|
||||
AZ_UNUSED(argc);
|
||||
AZ_UNUSED(argv);
|
||||
|
||||
// Disable gtest catching unhandled exceptions, instead, AzTestRunner will do it through:
|
||||
// AZ::Debug::Trace::HandleExceptions(true). This gives us a stack trace when the exception
|
||||
// is thrown (googletest does not).
|
||||
testing::FLAGS_gtest_catch_exceptions = false;
|
||||
}
|
||||
|
||||
//! Print out parameters that are not used by the framework
|
||||
|
||||
@@ -258,6 +258,8 @@ namespace AzTestRunner
|
||||
|
||||
int wrapped_main(int argc/*=0*/, char** argv/*=nullptr*/)
|
||||
{
|
||||
AZ::Debug::Trace::HandleExceptions(true);
|
||||
|
||||
if (argc>0 && argv!=nullptr)
|
||||
{
|
||||
return wrapped_command_arg_main(argc, argv);
|
||||
|
||||
Reference in New Issue
Block a user