[U-Boot] [PATCH 0/2] lib: errno: check for unsupported error number

Heinrich Schuchardt xypron.glpk at gmx.de
Sun Oct 6 12:33:36 UTC 2019


errno_str() should not return a random pointer for unknown error codes.

Provide a unit test for errno_str().

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 | 50 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 58 insertions(+), 1 deletion(-)
 create mode 100644 test/lib/test_errno_str.c

--
2.23.0



More information about the U-Boot mailing list