diff --git a/AdvLoggerPkg/UnitTests/AdvancedLoggerWrapper/AdvancedLoggerWrapperTestApp.c b/AdvLoggerPkg/UnitTests/AdvancedLoggerWrapper/AdvancedLoggerWrapperTestApp.c index 14fa6d13ca..17168937b3 100644 --- a/AdvLoggerPkg/UnitTests/AdvancedLoggerWrapper/AdvancedLoggerWrapperTestApp.c +++ b/AdvLoggerPkg/UnitTests/AdvancedLoggerWrapper/AdvancedLoggerWrapperTestApp.c @@ -185,7 +185,8 @@ InitializeInMemoryLog ( if (!ValidateInfoBlock ()) { mLoggerInfo = NULL; - UT_ASSERT_TRUE (FALSE); + UT_ASSERT_NOT_NULL (mLoggerInfo); + } // This is to bypass the restriction on runtime check.