diff options
author | Michael D Kinney <michael.d.kinney@intel.com> | 2024-02-06 14:43:16 -0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-02-14 02:37:16 +0000 |
commit | 312ccaf81b6343c9bcee1f8992086075353abeca (patch) | |
tree | e1913dbc5e5a0a8a92ce466f691632b49f5297e9 /UnitTestFrameworkPkg/UnitTestFrameworkPkgHost.dsc.inc | |
parent | 81b69f306fe801546786186e1e5ae5f79a2fde97 (diff) | |
download | edk2-312ccaf81b6343c9bcee1f8992086075353abeca.tar.gz |
UnitTestFrameworkPkg/UnitTestLib: GetActiveFrameworkHandle() no ASSERT()
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4683
Update GetActiveFrameworkHandle() to remove ASSERT() and require
caller to check for NULL.
This allows GetActiveFrameworkHandle() to be used to determine if the
current host-based test environment is framework/cmocka or gtest. In
the framework/cmocka host-based environment GetActiveFrameworkHandle()
returns non-NULL. In the gtest host-based environment
GetActiveFrameworkHandle() returns NULL.
Cc: Michael Kubacki <mikuback@linux.microsoft.com>
Cc: Sean Brogan <sean.brogan@microsoft.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Michael Kubacki <michael.kubacki@microsoft.com>
Diffstat (limited to 'UnitTestFrameworkPkg/UnitTestFrameworkPkgHost.dsc.inc')
0 files changed, 0 insertions, 0 deletions