]> git.proxmox.com Git - mirror_edk2.git/commit
UnitTestFrameworkPkg: Change target mode DebugLib mapping
authorMichael D Kinney <michael.d.kinney@intel.com>
Thu, 11 Jun 2020 00:49:12 +0000 (17:49 -0700)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 15 Jul 2020 05:25:21 +0000 (05:25 +0000)
commit813c2b15255406f587484ffcedfd01ca9ab5d056
tree1ee0a55ca7cbfa10a59ea15361c0a4d807a49e12
parentf08715947ad52ee4fd67358660860ea63a532e15
UnitTestFrameworkPkg: Change target mode DebugLib mapping

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

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 <sean.brogan@microsoft.com>
Cc: Bret Barkelew <Bret.Barkelew@microsoft.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Bret Barkelew <Bret.Barkelew@microsoft.com>
UnitTestFrameworkPkg/UnitTestFrameworkPkgTarget.dsc.inc