test: check flow classifier creation
authorMin Hu (Connor) <humin29@huawei.com>
Thu, 22 Apr 2021 06:13:54 +0000 (14:13 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 12 May 2021 19:46:05 +0000 (21:46 +0200)
commit705b04af1c100c464b6d9238408e84cfeffc489c
tree4b85160fb9eebc24209a8e5fa3d3907a4c544a60
parent5ffa60cd77c76855690d06cb900d6670f29de9a6
test: check flow classifier creation

'cls->cls' will be NULL if flow classifier create has failed,
then segmentation fault will occur if the variable is used.

This patch fixed it.

Fixes: 9c9befea4f57 ("test: add flow classify unit tests")
Cc: stable@dpdk.org
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
app/test/test_flow_classify.c