
6 Oct
2019
6 Oct
'19
2:33 p.m.
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