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

Heinrich Schuchardt xypron.glpk at gmx.de
Tue Oct 15 19:46:02 UTC 2019


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



More information about the U-Boot mailing list