]> git.droids-corp.org - dpdk.git/commit
eal: differentiate strerror message on Windows
authorJie Zhou <jizh@linux.microsoft.com>
Wed, 26 Jan 2022 05:10:39 +0000 (21:10 -0800)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 8 Feb 2022 13:19:40 +0000 (14:19 +0100)
commite14f1744d65a702af624f3174dfd6bac6e98c53a
tree13a58cfae25413b9cc4e576219a969ec5db78342
parent1570ab11292b696e727142c7a1e64994b397e33a
eal: differentiate strerror message on Windows

On Windows, strerror returns just "Unknown error" for errnum greater
than MAX_ERRNO, while linux and freebsd returns "Unknown error <num>",
which is the current expectation for errno_autotest. Differentiate
the error string on Windows to remove a "duplicate error code" failure.

Signed-off-by: Jie Zhou <jizh@linux.microsoft.com>
Acked-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
app/test/test_errno.c
lib/eal/common/eal_common_errno.c