<feed xmlns='http://www.w3.org/2005/Atom'>
<title>uefi/tianocore/edk2.git/UnitTestFrameworkPkg, branch master</title>
<subtitle>EDK II</subtitle>
<id>https://git.rulkc.org/pub/scm/bootloaders/uefi/tianocore/edk2.git/atom?h=master</id>
<link rel='self' href='https://git.rulkc.org/pub/scm/bootloaders/uefi/tianocore/edk2.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/bootloaders/uefi/tianocore/edk2.git/'/>
<updated>2026-03-26T16:41:13+00:00</updated>
<entry>
<title>UnitTestFrameworkPkg: Allow platform DSC to override sanitizer and coverage</title>
<updated>2026-03-26T16:41:13+00:00</updated>
<author>
<name>Abdul Lateef Attar</name>
<email>AbdulLateef.Attar@amd.com</email>
</author>
<published>2026-03-25T09:16:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/bootloaders/uefi/tianocore/edk2.git/commit/?id=b9c072aad65a3aba9345a9fcd56bdace43eaff9f'/>
<id>urn:sha1:b9c072aad65a3aba9345a9fcd56bdace43eaff9f</id>
<content type='text'>
UNIT_TESTING_CODE_COVERAGE_ENABLE and UNIT_TESTING_ADDRESS_SANITIZER_ENABLE
are unconditionally set to TRUE in UnitTestFrameworkPkgHost.dsc.inc,
preventing platform DSC files from disabling them. Wrap both assignments
with !ifndef so platforms can override the values by pre-defining these
macros before the !include directive.

Signed-off-by: Abdul Lateef Attar &lt;AbdulLateef.Attar@amd.com&gt;
</content>
</entry>
<entry>
<title>UnitTestFrameworkPkg: Align C++ sign compare</title>
<updated>2026-03-21T21:36:55+00:00</updated>
<author>
<name>Michael D Kinney</name>
<email>michael.d.kinney@intel.com</email>
</author>
<published>2026-03-18T22:13:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/bootloaders/uefi/tianocore/edk2.git/commit/?id=97aa85de722d2a2dab708d6a854379faddead74c'/>
<id>urn:sha1:97aa85de722d2a2dab708d6a854379faddead74c</id>
<content type='text'>
GCC enables -Wsign-compare by default but CLANG does
not enable -Wsign-compare by default. This causes
GCC unit test builds to fail with a signed/unsigned
mismatch when using EXPECT_EQ(), ASSERT_EQ(),
EXPECT_NE() or ASSERT_NE() with one of the items
being compared being literal 0. However, CLANG does
not fail for these builds.

Add -Wsign-compare to CXX_FLAGS for CLANGDWARF and
CLANGPDB to align CLANG error checking with GCC.

Add /w44388 and /w44389 to MSFT family compiler
CXX_FLAGS to align VS20xx error checking with GCC.

Signed-off-by: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
</content>
</entry>
<entry>
<title>UnitTestFrameworkPkg/Test/GoogleTest/Sample: Add 0 tests</title>
<updated>2026-03-21T21:36:55+00:00</updated>
<author>
<name>Michael D Kinney</name>
<email>michael.d.kinney@intel.com</email>
</author>
<published>2026-03-17T19:34:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/bootloaders/uefi/tianocore/edk2.git/commit/?id=7b6b0784a7935f9ae3728a527eda6544b9b6218d'/>
<id>urn:sha1:7b6b0784a7935f9ae3728a527eda6544b9b6218d</id>
<content type='text'>
Add tests that check a local variable against 0 for values
of type UINT8, UINT16, UINT32, UINT64, UINTN, UINT32 bitfields,
and UINT64 bitfields.

Signed-off-by: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
</content>
</entry>
<entry>
<title>UnitTestFrameworkPkg: Increment handle key outside if block</title>
<updated>2026-03-09T09:19:06+00:00</updated>
<author>
<name>Khalid Ali</name>
<email>khaliidcaliy@gmail.com</email>
</author>
<published>2026-03-06T19:45:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/bootloaders/uefi/tianocore/edk2.git/commit/?id=2691afa26994e62d05d356bbaa99343125cbea46'/>
<id>urn:sha1:2691afa26994e62d05d356bbaa99343125cbea46</id>
<content type='text'>
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 &lt;khaliidcaliy@gmail.com&gt;
</content>
</entry>
<entry>
<title>UnitTestFrameworkPkg: fix mdlint issues</title>
<updated>2026-03-04T22:02:33+00:00</updated>
<author>
<name>Sherry Fan</name>
<email>sherryfan@microsoft.com</email>
</author>
<published>2026-01-20T17:59:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/bootloaders/uefi/tianocore/edk2.git/commit/?id=fda4926b08dadaed995b471cfbe82b97512ebe6e'/>
<id>urn:sha1:fda4926b08dadaed995b471cfbe82b97512ebe6e</id>
<content type='text'>
Fix markdownlint formatting issues in README.

Signed-off-by: Sherry Fan &lt;sherryfan@microsoft.com&gt;
</content>
</entry>
<entry>
<title>UnitTestFrameworkPkg: Remove references to GCC5 in ReadMe and dsc comments</title>
<updated>2026-02-26T15:30:52+00:00</updated>
<author>
<name>Mike Beaton</name>
<email>mjsbeaton@gmail.com</email>
</author>
<published>2026-01-24T16:57:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/bootloaders/uefi/tianocore/edk2.git/commit/?id=5c8403f767eed55183c3b41fb829b08d1d3840af'/>
<id>urn:sha1:5c8403f767eed55183c3b41fb829b08d1d3840af</id>
<content type='text'>
Signed-off-by: Mike Beaton &lt;mjsbeaton@gmail.com&gt;
</content>
</entry>
<entry>
<title>UnitTestFrameworkPkg: Replace include guards with #pragma once</title>
<updated>2026-02-23T21:01:28+00:00</updated>
<author>
<name>Michael Kubacki</name>
<email>michael.kubacki@microsoft.com</email>
</author>
<published>2026-02-03T19:35:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/bootloaders/uefi/tianocore/edk2.git/commit/?id=59f58197ddec8213b442732391e09cd37126bd8c'/>
<id>urn:sha1:59f58197ddec8213b442732391e09cd37126bd8c</id>
<content type='text'>
Replace traditional `#ifndef`/`#define`/`#endif` include guards
with `#pragma` once.

`#pragma once` is a widely supported preprocessor directive that
prevents header files from being included multiple times. It is
supported by all toolchains used to build edk2: GCC, Clang/LLVM, and
MSVC.

Compared to macro-based include guards, `#pragma once`:

- Eliminates the risk of macro name collisions or copy/paste errors
  where two headers inadvertently use the same guard macro.
- Eliminate inconsistency in the way include guard macros are named
  (e.g., some files use `__FILE_H__`, others use `FILE_H_`, etc.).
- Reduces boilerplate (three lines replaced by one).
- Avoids polluting the macro namespace with guard symbols.
- Can improve build times as the preprocessor can skip re-opening the
  file entirely, rather than re-reading it to find the matching
  `#endif` ("multiple-include optimization").
  - Note that some compilers may already optimize traditional include
    guards, by recognzining the idiomatic pattern.

This change is made acknowledging that overall portability of the
code will technically be reduced, as `#pragma once` is not part of the
C/C++ standards.

However, this is considered acceptable given:

1. edk2 already defines a subset of supported compilers in
   BaseTools/Conf/tools_def.template, all of which have supported
   `#pragma once` for over two decades.
2. There have been concerns raised to the project about inconsistent
   include guard naming and potential macro collisions.

Approximate compiler support dates:

- MSVC: Supported since Visual C++ 4.2 (1996)
- GCC: Supported since 3.4 (2004)
  (http://gnu.ist.utl.pt/software/gcc/gcc-3.4/changes.html)
- Clang (LLVM based): Since initial release in 2007

Signed-off-by: Michael Kubacki &lt;michael.kubacki@microsoft.com&gt;
</content>
</entry>
<entry>
<title>UnitTestFrameworkPkg: WIN_MINGW32_BUILD generate .exe</title>
<updated>2026-01-21T05:44:25+00:00</updated>
<author>
<name>Michael D Kinney</name>
<email>michael.d.kinney@intel.com</email>
</author>
<published>2026-01-14T19:19:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/bootloaders/uefi/tianocore/edk2.git/commit/?id=0302aa5bca97143ce86b91f6db7b3a00342b4f3d'/>
<id>urn:sha1:0302aa5bca97143ce86b91f6db7b3a00342b4f3d</id>
<content type='text'>
Add .exe file extension to host-based unit test applications
built in a Windows Mingw build environment to match host-based
unit test applications generated in VS20xx environments.

Signed-off-by: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
</content>
</entry>
<entry>
<title>UnitTestFrameworkPkg: Add VS2026 Support</title>
<updated>2026-01-07T20:19:12+00:00</updated>
<author>
<name>Daniel</name>
<email>danalexgro@gmail.com</email>
</author>
<published>2026-01-07T14:54:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/bootloaders/uefi/tianocore/edk2.git/commit/?id=99f93277405da8f8851f31483af3281ed7aff41d'/>
<id>urn:sha1:99f93277405da8f8851f31483af3281ed7aff41d</id>
<content type='text'>
* Add checks for VS2026.
* Enable Address Sanitizer for VS2026.

Signed-off-by: Daniel Grobert &lt;danalexgro@gmail.com&gt;
</content>
</entry>
<entry>
<title>UnitTestFrameworkPkg: Add MINGW CLANG Support</title>
<updated>2026-01-07T00:56:11+00:00</updated>
<author>
<name>Michael D Kinney</name>
<email>michael.d.kinney@intel.com</email>
</author>
<published>2025-12-28T21:53:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/bootloaders/uefi/tianocore/edk2.git/commit/?id=d97d93bba8a89566065437e6cd9b7771dfda7b98'/>
<id>urn:sha1:d97d93bba8a89566065437e6cd9b7771dfda7b98</id>
<content type='text'>
* Add checks for supported tool chains with error messages.
* Add support for MINGW CLANGDWARF builds
* Fix IA32 C++ alignment errors using CLANGDWARF
* Add CLANG native code coverage compiler/linker options
* Reduce Visual Studio support to VS2019 and VS2022 and simplify
  linker options for VS20xx and CLANGPDB using VS libraries.
* Add correct ASAN libraries for IA32/X64 CLANGPDB builds
* Add -z noexectstack linker option for all Linux builds.

Signed-off-by: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
</content>
</entry>
</feed>
