enables our exception handling and disables gtest's

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
Esteban Papp
2021-10-14 12:33:53 -07:00
parent e078580f2c
commit 04a6744765
2 changed files with 8 additions and 2 deletions
+6 -2
View File
@@ -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
+2
View File
@@ -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);