[PATCH V3 2/3] test: cmd: nvedit: Add basic unit tests
Tom Rini
trini at konsulko.com
Tue Jun 3 22:12:49 CEST 2025
On Fri, May 09, 2025 at 09:00:42PM +0200, Christoph Niedermaier wrote:
> Add basic unit tests for argument checking of the env command.
>
> Signed-off-by: Christoph Niedermaier <cniedermaier at dh-electronics.com>
[snip]
> + /* Binary format with checksum and with wrong size */
> + ut_asserteq(1, run_commandf("env import -c ${loadaddr} %x", offsetof(env_t, data)));
This will be "unsigned long int" on 64bit or "unsigned int" on 32bit,
and so we can't use %x here.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20250603/faba4bfc/attachment.sig>
More information about the U-Boot
mailing list