errno_str() should not return a random pointer for unknown error codes. Provide a unit test for errno_str().
v2: Do not use constants for error messages in unit test. Heinrich Schuchardt (2): lib: errno: check for unsupported error number test: provide test for errno_str() lib/errno_str.c | 8 ++++++- test/lib/Makefile | 1 + test/lib/test_errno_str.c | 46 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 test/lib/test_errno_str.c -- 2.23.0 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot