audk/UnitTestFrameworkPkg/Library/UnitTestLib
Michael D Kinney 312ccaf81b 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>
2024-02-14 02:37:16 +00:00
..
Assert.c UnitTestFrameworkPkg/UnitTestLib: GetActiveFrameworkHandle() no ASSERT() 2024-02-14 02:37:16 +00:00
AssertCmocka.c UnitTestFrameworkPkg/UnitTestLib: Print expected Status on ASSERT fail 2022-12-14 23:48:30 +00:00
Log.c UnitTestFrameworkPkg/UnitTestLib: GetActiveFrameworkHandle() no ASSERT() 2024-02-14 02:37:16 +00:00
RunTests.c UnitTestFrameworkPkg/UnitTestLib: GetActiveFrameworkHandle() no ASSERT() 2024-02-14 02:37:16 +00:00
RunTestsCmocka.c UnitTestFrameworkPkg/UnitTestLib: GetActiveFrameworkHandle() no ASSERT() 2024-02-14 02:37:16 +00:00
UnitTestLib.c UnitTestFrameworkPkg/UnitTestLib: GetActiveFrameworkHandle() no ASSERT() 2024-02-14 02:37:16 +00:00
UnitTestLib.inf UnitTestFrameworkPg: Fix build failure of MdeModulePkg with UnitTestLib 2020-12-05 01:52:14 +00:00
UnitTestLib.uni UnitTestFrameworkPkg/Library: Add library instances 2020-02-07 19:18:53 +00:00
UnitTestLibCmocka.inf UnitTestFrameworkPkg/Library: Add library instances 2020-02-07 19:18:53 +00:00
UnitTestLibCmocka.uni UnitTestFrameworkPkg/Library: Add library instances 2020-02-07 19:18:53 +00:00