]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg: Perform test only if not ignore memory test
authorHeng Luo <heng.luo@intel.com>
Tue, 14 Jan 2020 06:29:43 +0000 (14:29 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 6 Feb 2020 08:18:17 +0000 (08:18 +0000)
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>
MdeModulePkg/Universal/MemoryTest/GenericMemoryTestDxe/LightMemoryTest.c

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