MdeModulePkg: Perform test only if not ignore memory test

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2463

Perform Data and Address line test only if not ignore memory test.

Signed-off-by: Heng Luo <heng.luo@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
This commit is contained in:
Heng Luo 2020-01-14 14:29:43 +08:00 committed by mergify[bot]
parent a9e3458ba7
commit f469c70281
1 changed files with 6 additions and 4 deletions

View File

@ -1,6 +1,6 @@
/** @file
Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2006 - 2020, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
@ -677,10 +677,12 @@ GenMemoryTestFinished (
Private = GENERIC_MEMORY_TEST_PRIVATE_FROM_THIS (This);
//
// Perform Data and Address line test
// Perform Data and Address line test only if not ignore memory test
//
if (Private->CoverLevel != IGNORE) {
Status = PerformAddressDataLineTest (Private);
ASSERT_EFI_ERROR (Status);
}
//
// Add the non tested memory range to system memory map through GCD service