From nobody Sun Feb 8 22:58:06 2026 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+62361+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+62361+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1594433354; cv=none; d=zohomail.com; s=zohoarc; b=eRhBs0HhbzKcFFbYeBa4eVWk2ynZSCtbR5c1A5tVtuKI/XJs/P6SY5/42rPkpv1llYC4nirHUN6n1ewTQ/zicFglw2EWDJEb5lw/Lo/WQjc8LQPA7soZ86eAPxOFWCkbohp0hGBuHKM1o9WII1hclhZsc8OHPHPy+oUIbrrj9zA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1594433354; 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=WzXAuTrB5B1rgm7KFqVq3AmO4KAL5plUNQSKVFqiSs4=; b=TLq/xQQrC9q5KdS8l0Rdtwp/QRwarHdiCGN9ok/LQysyrtiNrrhQNqMfNLbZjkYEUijlXGxJGdDlmSDQ5usR8Cr26/cOoRy31Aiz2+s/hDPZ39DMJkZ9rD5KvayLPtQSVQADVeoj45iSoEM8e2t6u9S7ieLHTBNV+vpS6tMb8jA= 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+62361+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 1594433354185376.8146236391983; Fri, 10 Jul 2020 19:09:14 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id 0sgaYY1788612xSngFkhyeNV; Fri, 10 Jul 2020 19:09:13 -0700 X-Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mx.groups.io with SMTP id smtpd.web11.2047.1594433352364265985 for ; Fri, 10 Jul 2020 19:09:12 -0700 IronPort-SDR: sWUxIeDCRRA94k7B8HRe6m+iB6EpqXmQC0jfRfHxBmIDQzMjH/xsUYMZFbMBTNp2r4AwY19xld EhNsyb50eg2g== X-IronPort-AV: E=McAfee;i="6000,8403,9678"; a="146380559" X-IronPort-AV: E=Sophos;i="5.75,337,1589266800"; d="scan'208";a="146380559" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jul 2020 19:09:12 -0700 IronPort-SDR: 0LmCqy24cVeZojno2pRtsYfIJ88a2spVEC2Xy9UcgtRR0mnj90FxpQxpX4TKGJB8EVOw7QIQT5 k+HVftLf8mRA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,337,1589266800"; d="scan'208";a="298602285" X-Received: from mdkinney-mobl2.amr.corp.intel.com ([10.254.75.186]) by orsmga002.jf.intel.com with ESMTP; 10 Jul 2020 19:09:11 -0700 From: "Michael D Kinney" To: devel@edk2.groups.io Cc: Sean Brogan , Bret Barkelew , Jiewen Yao Subject: [edk2-devel] [Patch v3 09/16] UnitTestFrameworkPkg: Change target mode DebugLib mapping Date: Fri, 10 Jul 2020 19:08:57 -0700 Message-Id: <20200711020904.24116-10-michael.d.kinney@intel.com> In-Reply-To: <20200711020904.24116-1-michael.d.kinney@intel.com> References: <20200711020904.24116-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: OiO99ds377J6K42rasBSb2jUx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1594433353; bh=mmT4Ru67J6hIWH8b52W7G6ayeeYUpkqUZJJgE0+lI1w=; h=Cc:Date:From:Reply-To:Subject:To; b=TG7b+U97JL7vsbDwfSXtXtn9NIQ0v8ArQfuJUM2q3Rat24BLGb4sLbLtFBGlMMnQaQs 3cHjICN0074GA08hYsFx/8Nl0IDozCKkZXJZiewFJ/ReMxgNzcGB+Jw+7W97K4OTZsWx5 FH992NML+X10kQkkZq7ZObbGFZnAm/IUEJ8= 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 Reviewed-by: Bret Barkelew --- 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 (#62361): https://edk2.groups.io/g/devel/message/62361 Mute This Topic: https://groups.io/mt/75432221/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-