]> git.droids-corp.org - dpdk.git/commit
test/log: skip regex on Windows
authorJie Zhou <jizh@linux.microsoft.com>
Wed, 26 Jan 2022 05:10:38 +0000 (21:10 -0800)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 8 Feb 2022 13:19:40 +0000 (14:19 +0100)
commit1570ab11292b696e727142c7a1e64994b397e33a
treeb3274bf1b560601516903895ee64ac02c3c2afca
parentd18eb797409f6279f9f522c9fda06bb4677705cc
test/log: skip regex on Windows

DPDK logs_autotest on Windows failed at "dynamic log types" tests.
The failures are on 2 test cases for rte_log_set_level_regexp API,
due to regular expression is not supported on Windows in DPDK yet
and regcomp/regexec are just stubs on Windows (in regex.h).

In app/test/test_logs.c, ifndef these two test cases, and for the
rte_log_set_level_pattern validation case following these two cases,
differentiate the expected log level passed into macro CHECK_LEVELS

Now logs_autotest completes for all dynamic log types and static log types.

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