diff --git a/UefiCpuPkg/Library/MtrrLib/UnitTest/MtrrLibUnitTest.c b/UefiCpuPkg/Library/MtrrLib/UnitTest/MtrrLibUnitTest.c index 1409ae27bb..ac18d9d25d 100644 --- a/UefiCpuPkg/Library/MtrrLib/UnitTest/MtrrLibUnitTest.c +++ b/UefiCpuPkg/Library/MtrrLib/UnitTest/MtrrLibUnitTest.c @@ -399,7 +399,7 @@ UnitTestIsMtrrSupported ( SystemParameter.VariableMtrrCount = 0; SystemParameter.FixedMtrrSupported = TRUE; InitializeMtrrRegs (&SystemParameter); - UT_ASSERT_FALSE (IsMtrrSupported ()); + UT_ASSERT_TRUE (IsMtrrSupported ()); // // MTRR capability on in CPUID leaf, but no fixed MTRRs. @@ -408,7 +408,7 @@ UnitTestIsMtrrSupported ( SystemParameter.VariableMtrrCount = 7; SystemParameter.FixedMtrrSupported = FALSE; InitializeMtrrRegs (&SystemParameter); - UT_ASSERT_FALSE (IsMtrrSupported ()); + UT_ASSERT_TRUE (IsMtrrSupported ()); // // MTRR capability on in CPUID leaf with both variable and fixed MTRRs.