git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
752321b
)
test: clean up setexpr_test_str()
author
Heinrich Schuchardt
<heinrich.schuchardt@canonical.com>
Mon, 3 Feb 2025 15:10:26 +0000
(16:10 +0100)
committer
Tom Rini
<trini@konsulko.com>
Fri, 7 Feb 2025 19:35:23 +0000
(13:35 -0600)
Assign variable buf in the sub-test where it is used.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
test/cmd/setexpr.c
patch
|
blob
|
history
diff --git
a/test/cmd/setexpr.c
b/test/cmd/setexpr.c
index
7f318a4
..
cc2003f
100644
(file)
--- a/
test/cmd/setexpr.c
+++ b/
test/cmd/setexpr.c
@@
-309,10
+309,10
@@
static int setexpr_test_str(struct unit_test_state *uts)
*/
ut_assertok(env_set("fred", "x"));
start_mem = ut_check_free();
- strcpy(buf, "hello");
ut_asserteq(1, run_command("setexpr.s fred 0", 0));
ut_assertok(ut_check_delta(start_mem));
+ strcpy(buf, "hello");
ut_assertok(env_set("fred", "12345"));
start_mem = ut_check_free();
ut_assertok(run_command("setexpr.s fred *0", 0));