selftests: kselftest: Use strerror() on nolibc
authorzhang jiao <zhangjiao2@cmss.chinamobile.com>
Wed, 11 Sep 2024 04:42:30 +0000 (12:42 +0800)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 11 Sep 2024 15:52:33 +0000 (09:52 -0600)
commita0474b8d5974e142461ac7584c996feea167bcc1
tree10abce87b53d4fcc03fc50a0e46203a99dc6907d
parentaf1ec38c6ccc31ec963ac4bcf8f6a7d8f44d210a
selftests: kselftest: Use strerror() on nolibc

Nolibc gained an implementation of strerror() recently.
Use it and drop the ifndef.

Signed-off-by: zhang jiao <zhangjiao2@cmss.chinamobile.com>
Acked-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/kselftest.h