tests: update CMocka to stable-1.1

CMocka stable-1.1 has some convenience bugfixes like vprint buffer
increase or leftover values log fix (funtion names display correctly
now.

Signed-off-by: Jakub Czapiga <jacz@semihalf.com>
Change-Id: I20ebd15324a21c17cccd2976ae9c3f86b040426d
Reviewed-on: https://review.coreboot.org/c/coreboot/+/63636
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
Jakub Czapiga 2022-04-14 12:01:59 +02:00 committed by Felix Held
parent 38f7ba3db4
commit c91b55a201
3 changed files with 3 additions and 2 deletions

1
.gitmodules vendored
View File

@ -48,6 +48,7 @@
path = 3rdparty/cmocka path = 3rdparty/cmocka
url = ../cmocka.git url = ../cmocka.git
update = none update = none
branch = stable-1.1
[submodule "3rdparty/qc_blobs"] [submodule "3rdparty/qc_blobs"]
path = 3rdparty/qc_blobs path = 3rdparty/qc_blobs
url = ../qc_blobs.git url = ../qc_blobs.git

2
3rdparty/cmocka vendored

@ -1 +1 @@
Subproject commit 672c5cee79eb412025c3dd8b034e611c1f119055 Subproject commit 8931845c35e78b5123d73430b071affd537d5935

View File

@ -35,7 +35,7 @@ static void test_b64_decode(void **state)
res = b64_decode((uint8_t *)messages[i].enc, strlen(messages[i].enc), decoded); res = b64_decode((uint8_t *)messages[i].enc, strlen(messages[i].enc), decoded);
assert_int_equal(res, (strlen(messages[i].dec))); assert_int_equal(res, (strlen(messages[i].dec)));
assert_string_equal(decoded, messages[i].dec); assert_string_equal((const char *)decoded, messages[i].dec);
free(decoded); free(decoded);
} }