edk2/UnitTestFrameworkPkg/Library
Khalid Ali 2691afa269 UnitTestFrameworkPkg: Increment handle key outside if block
Fixes: #11113

Currently, the global handle key and key inside handle structure is
incremented only when a new handle is allocated for protocol interface
to be installed.

However, when caller already supplies a handle gHandleDatabaseKey never
get incremented.

Move handle key incremental outside if block, just below the else
statement which allows gHandleDatabaseKey to always incremented whether
handle is supplied or not.

Signed-off-by: Khalid Ali <khaliidcaliy@gmail.com>
2026-03-09 09:19:06 +00:00
..
CmockaLib UnitTestFrameworkPkg/CmockaLib: Add CLANGPDB support 2025-09-28 23:38:21 +00:00
FunctionMockLib UnitTestFrameworkPkg: Add gmock support to GoogleTestLib 2023-04-10 05:59:02 +00:00
GoogleTestLib UnitTestFrameworkPkg/GoogleTestLib: Remove extra options 2025-09-28 23:38:21 +00:00
Posix UnitTestFrameworkPkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
SubhookLib UnitTestFrameworkPkg/SubhookLib: Update GCC defines 2025-09-28 23:38:21 +00:00
UnitTestBootLibNull UnitTestFrameworkPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
UnitTestBootLibUsbClass UnitTestFrameworkPkg: Update to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
UnitTestDebugAssertLib UnitTestFrameworkPkg/UnitTestDebugAssertLibHost: Fix clang error 2025-12-23 01:10:46 +00:00
UnitTestLib UnitTestFrameworkPkg/UnitTestLib: Fix printf() error from clang 2025-12-23 01:10:46 +00:00
UnitTestPeiServicesTablePointerLib UnitTestFrameworkPkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00
UnitTestPersistenceLibNull UnitTestFrameworkPkg: Modify APIs in UnitTestPersistenceLib 2022-12-14 13:34:33 +00:00
UnitTestPersistenceLibSimpleFileSystem UnitTestFrameworkPkg: UnitTestPersistenceLib: Save Unit Test Cache Option 2023-07-20 20:20:42 +00:00
UnitTestResultReportLib UnitTestFrameworkPkg: Update to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
UnitTestUefiBootServicesTableLib UnitTestFrameworkPkg: Increment handle key outside if block 2026-03-09 09:19:06 +00:00