tests/lib/ux_locales-test: Avoid double quotes in CMUnitTest.name

From the Jenkins result of CB:90798, it appears that the generated
junit-tests_lib_ux_locales-test(tests).xml is not a valid XML file
possibly due to incorrect quotes handling by cmocka.

Therefore, in the UX_LOCALES_GET_TEXT_TEST macro definition, replace
`#_expect` with `_expect`, so that the `name` field of the CMUnitTest
struct won't contain double quotes.

Change-Id: Idfec437ae627208031854694e66ca79e22132385
Signed-off-by: Yu-Ping Wu <yupingso@chromium.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/90801
Reviewed-by: Jakub "Kuba" Czapiga <czapiga@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Yu-Ping Wu 2026-01-19 23:26:53 +08:00 committed by Matt DeVillier
commit e64507638e

View file

@ -191,7 +191,7 @@ static void test_ux_locales_null_terminated(void **state)
#define UX_LOCALES_GET_TEXT_TEST(_msg_id, _lang_id, _expect) \
((struct CMUnitTest) { \
.name = "test_ux_locales_get_text(msg_id=" #_msg_id ", lang_id=" #_lang_id \
", expect=" #_expect ")", \
", expect=" _expect ")", \
.test_func = test_ux_locales_get_text, \
.setup_func = setup_default, \
.teardown_func = teardown_unmap, \