From nobody Tue Nov 26 02:28:46 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+62286+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+62286+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1594267541; cv=none; d=zohomail.com; s=zohoarc; b=lWCzFAt5nAxoFkDZH3MMJLzdECTIJ6ZcJ0ZKdNZ/pFZoqa05ytuxvkFa4hHeBR0fQy9DDZId/NIjJUvRRJjlX7Kc4D/f5T7poiXBISVDZY7Xyoj+04PaupN7lOXyevEEcn5dbhLIH3z7zc7CjSaWKrw8HpmgRIq4l/ScTZD5hhs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1594267541; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=c/k1VXC0fPzqm/agVh8nOa0+klRAbbPer2CkSYvVDDE=; b=ftGL2ag/SSsI96z8lmLhCPLG5q+i8MocksqlE9G1sKBByEW7U9CWAzP1n3k5suNvSg6b05AhTioRa6F9FgYxkxmLLTBsA7tT8+CvPWpuBJqZTQpltpWFtT489TACwynU4sP204X6i9fjrN428VFdTgLNMp5FSAQWHowKvpPvscI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+62286+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1594267541357850.3311652003813; Wed, 8 Jul 2020 21:05:41 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id jOM3YY1788612xWltn5YZtp7; Wed, 08 Jul 2020 21:05:41 -0700 X-Received: from mga07.intel.com (mga07.intel.com []) by mx.groups.io with SMTP id smtpd.web11.4378.1594267536731145998 for ; Wed, 08 Jul 2020 21:05:38 -0700 IronPort-SDR: Q4TwHSBz1nh2GhCu/j590xDlmWzQTg+c35sDDc+J3yT7mqloIt81ysbBuOCsRNaRJvlaix2dY8 qQnOT568v+Gw== X-IronPort-AV: E=McAfee;i="6000,8403,9676"; a="212851100" X-IronPort-AV: E=Sophos;i="5.75,330,1589266800"; d="scan'208";a="212851100" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jul 2020 21:05:38 -0700 IronPort-SDR: qwREu3NiiIGkp7UC66v7pJaynHNEeqqXlFSK/pEQQBawSTnCQTvbMhGKT3llFjT73P9Ld0RPxi QL+onNhXovnQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,330,1589266800"; d="scan'208";a="280163934" X-Received: from mdkinney-mobl2.amr.corp.intel.com ([10.255.230.8]) by orsmga003.jf.intel.com with ESMTP; 08 Jul 2020 21:05:37 -0700 From: "Michael D Kinney" To: devel@edk2.groups.io Cc: Sean Brogan , Bret Barkelew , Jiewen Yao Subject: [edk2-devel] [Patch v2 09/16] UnitTestFrameworkPkg: Change target mode DebugLib mapping Date: Wed, 8 Jul 2020 21:05:14 -0700 Message-Id: <20200709040521.3748-10-michael.d.kinney@intel.com> In-Reply-To: <20200709040521.3748-1-michael.d.kinney@intel.com> References: <20200709040521.3748-1-michael.d.kinney@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,michael.d.kinney@intel.com X-Gm-Message-State: VYTM64sTFGBvO2Iqx7gMz5oHx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1594267541; bh=qGgPTkQ5RMESLWJj5VJiiR88+MuKaOWZvUblyWi5nx8=; h=Cc:Date:From:Reply-To:Subject:To; b=seBIwTWvoXpnw0pfclLxYSOVCYMocmz9ZSYv9XyfDvM8mWcioCZ8N1U6vZoVcc9th4j dSphrtwhiDxy1TpWR0ouWvEylblw3H90dTep3G5M4keT7qCliAfTDFSZODaeTanAOv8uk wXgupAWM0+MzNFv/XMWxw0RukqkkjPxFCQk= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2801 The default DebugLib for target mode was DebugLibNull. This library instance disables all ASSERT() and DEBUG() macros which removes the ability to write unit tests that check for ASSERT() behaviors. The DebugLib is changed to PeiDxeDebugLibReportStatusCode.inf that guarantees that DEBUG() and ASSERT() macros are active. The default ReportStatusCodeLib is set to BaseReportStatusCodeLibNull.inf so no messages are sent to any devices preserving the DebugLibNull behavior. A platform specific unit test can always override these mappings with a platform specific DebugLib. Cc: Sean Brogan Cc: Bret Barkelew Cc: Jiewen Yao Signed-off-by: Michael D Kinney --- UnitTestFrameworkPkg/UnitTestFrameworkPkgTarget.dsc.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/UnitTestFrameworkPkg/UnitTestFrameworkPkgTarget.dsc.inc b/Unit= TestFrameworkPkg/UnitTestFrameworkPkgTarget.dsc.inc index c29b056fca..0881278ab0 100644 --- a/UnitTestFrameworkPkg/UnitTestFrameworkPkgTarget.dsc.inc +++ b/UnitTestFrameworkPkg/UnitTestFrameworkPkgTarget.dsc.inc @@ -16,7 +16,9 @@ [LibraryClasses] =20 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf - DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf + DebugLib|MdeModulePkg/Library/PeiDxeDebugLibReportStatusCode/PeiDxeDebug= LibReportStatusCode.inf + ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseRepor= tStatusCodeLibNull.inf + DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseD= ebugPrintErrorLevelLib.inf MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAll= ocationLib.inf PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf --=20 2.21.0.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#62286): https://edk2.groups.io/g/devel/message/62286 Mute This Topic: https://groups.io/mt/75391616/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-