
15 Oct
2019
15 Oct
'19
9:46 p.m.
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