[PATCH v2 3/5] test: Add test for strlcat

Simon Glass sjg at chromium.org
Thu Mar 25 01:38:17 CET 2021


Hi Sean,

On Thu, 11 Mar 2021 at 18:15, Sean Anderson <seanga2 at gmail.com> wrote:
>
> This test is adapted from glibc, which is very concerned about alignment.
> It also tests strlcpy by dependency.
>
> Signed-off-by: Sean Anderson <seanga2 at gmail.com>
> ---
>
> Changes in v2:
> - New
>
>  test/lib/Makefile  |   1 +
>  test/lib/strlcat.c | 126 +++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 127 insertions(+)
>  create mode 100644 test/lib/strlcat.c

Reviewed-by: Simon Glass <sjg at chromium.org>

Gosh, it certainly is.

I do wonder whether you are better just using ut_asserteq_str() since
people get the line number and that is normally enough to repeat and
find the failure.


- Simon


More information about the U-Boot mailing list