REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2853
cmocka issue and commit that increases the log message length: * https://gitlab.com/cmocka/cmocka/-/issues/51 * https://gitlab.com/cmocka/cmocka/-/commit/36c85066dee0113e0b743d886c001ae76ca1fea9 Update cmocka to a version that supports longer log messages. This update requires <stdint.h> to be included before <cmocka.h>. The legacy cmockery feature has been removed, so the private include path to cmockery in the DEC file is no longer required. Cc: Sean Brogan <[email protected]> Cc: Bret Barkelew <[email protected]> Signed-off-by: Michael D Kinney <[email protected]> --- UnitTestFrameworkPkg/Library/CmockaLib/cmocka | 2 +- UnitTestFrameworkPkg/Library/UnitTestLib/AssertCmocka.c | 1 + UnitTestFrameworkPkg/Library/UnitTestLib/RunTestsCmocka.c | 1 + UnitTestFrameworkPkg/UnitTestFrameworkPkg.dec | 1 - 4 files changed, 3 insertions(+), 2 deletions(-) diff --git a/UnitTestFrameworkPkg/Library/CmockaLib/cmocka b/UnitTestFrameworkPkg/Library/CmockaLib/cmocka index 1cc9cde3448c..5a4b15870efa 160000 --- a/UnitTestFrameworkPkg/Library/CmockaLib/cmocka +++ b/UnitTestFrameworkPkg/Library/CmockaLib/cmocka @@ -1 +1 @@ -Subproject commit 1cc9cde3448cdd2e000886a26acf1caac2db7cf1 +Subproject commit 5a4b15870efa2225e6586fbb4c3af05ff0659434 diff --git a/UnitTestFrameworkPkg/Library/UnitTestLib/AssertCmocka.c b/UnitTestFrameworkPkg/Library/UnitTestLib/AssertCmocka.c index dc05bbd4384c..e829f37bb898 100644 --- a/UnitTestFrameworkPkg/Library/UnitTestLib/AssertCmocka.c +++ b/UnitTestFrameworkPkg/Library/UnitTestLib/AssertCmocka.c @@ -9,6 +9,7 @@ #include <string.h> #include <stdarg.h> #include <stddef.h> +#include <stdint.h> #include <setjmp.h> #include <cmocka.h> diff --git a/UnitTestFrameworkPkg/Library/UnitTestLib/RunTestsCmocka.c b/UnitTestFrameworkPkg/Library/UnitTestLib/RunTestsCmocka.c index ca4dae120690..0ab5c6af2221 100644 --- a/UnitTestFrameworkPkg/Library/UnitTestLib/RunTestsCmocka.c +++ b/UnitTestFrameworkPkg/Library/UnitTestLib/RunTestsCmocka.c @@ -9,6 +9,7 @@ #include <string.h> #include <stdarg.h> #include <stddef.h> +#include <stdint.h> #include <setjmp.h> #include <cmocka.h> diff --git a/UnitTestFrameworkPkg/UnitTestFrameworkPkg.dec b/UnitTestFrameworkPkg/UnitTestFrameworkPkg.dec index 069289f00969..66ed512edf84 100644 --- a/UnitTestFrameworkPkg/UnitTestFrameworkPkg.dec +++ b/UnitTestFrameworkPkg/UnitTestFrameworkPkg.dec @@ -20,7 +20,6 @@ [Includes] [Includes.Common.Private] PrivateInclude - Library/CmockaLib/cmocka/include/cmockery [LibraryClasses.Common.Private] ## @libraryclass Allows save and restore unit test internal state -- 2.32.0.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#86532): https://edk2.groups.io/g/devel/message/86532 Mute This Topic: https://groups.io/mt/89038000/21656 Group Owner: [email protected] Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
