mirror of
https://xff.cz/git/u-boot/
synced 2025-09-04 10:12:14 +02:00
test: correct the test prefix in ut str
Align the prefix used in cmd_ut_category function and name of tests
for ut str.
This patch solves the issues detected by "make qcheck" after previous
patch.
Fixes: fdc79a6b12
("lib: Add a function to convert a string to upper case")
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
committed by
Tom Rini
parent
353df8d3c3
commit
76fde13883
@@ -19,7 +19,7 @@ static const char str3[] = "0xbI'm sorry you're alive.";
|
|||||||
/* Declare a new str test */
|
/* Declare a new str test */
|
||||||
#define STR_TEST(_name, _flags) UNIT_TEST(_name, _flags, str_test)
|
#define STR_TEST(_name, _flags) UNIT_TEST(_name, _flags, str_test)
|
||||||
|
|
||||||
static int str_test_upper(struct unit_test_state *uts)
|
static int str_upper(struct unit_test_state *uts)
|
||||||
{
|
{
|
||||||
char out[TEST_STR_SIZE];
|
char out[TEST_STR_SIZE];
|
||||||
|
|
||||||
@@ -55,7 +55,7 @@ static int str_test_upper(struct unit_test_state *uts)
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
STR_TEST(str_test_upper, 0);
|
STR_TEST(str_upper, 0);
|
||||||
|
|
||||||
static int run_strtoul(struct unit_test_state *uts, const char *str, int base,
|
static int run_strtoul(struct unit_test_state *uts, const char *str, int base,
|
||||||
ulong expect_val, int expect_endp_offset, bool upper)
|
ulong expect_val, int expect_endp_offset, bool upper)
|
||||||
|
Reference in New Issue
Block a user