diff options
author | Michael D Kinney <michael.d.kinney@intel.com> | 2020-06-10 18:00:37 -0700 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2020-07-15 05:25:21 +0000 |
commit | 75e92c13541672a3af349067a040b9dda3d4452d (patch) | |
tree | 857d9c99c562b33cd7511c88d7c720969f0d1d29 /BaseTools/Source/Python/Common/Misc.py | |
parent | 26824851b041d9e81921ec7ef97220d2a2576157 (diff) | |
download | edk2-75e92c13541672a3af349067a040b9dda3d4452d.tar.gz edk2-75e92c13541672a3af349067a040b9dda3d4452d.tar.bz2 edk2-75e92c13541672a3af349067a040b9dda3d4452d.zip |
MdePkg/Include: Hook DebugLib _ASSERT() for unit tests
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2801
Update DebugLib.h _ASSERT() macro to check if unit testing
is enabled and call UnitTestDebugAssert() instead of
DebugAssert() so the an ASSERT() condition that is triggered
by a function under test can be handled by the Unit Test
Framework.
If EDKII_UNIT_TEST_FRAMEWORK_ENABLED is not defined, then
the existing DebugLib behavior is preserved.
Cc: Liming Gao <liming.gao@intel.com>
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>
Diffstat (limited to 'BaseTools/Source/Python/Common/Misc.py')
0 files changed, 0 insertions, 0 deletions