test: skip some subtests in no-huge mode
authorRuifeng Wang <ruifeng.wang@arm.com>
Mon, 23 Mar 2020 19:59:23 +0000 (20:59 +0100)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 24 Mar 2020 10:14:22 +0000 (11:14 +0100)
commit27fb5dd2850c60b46660b93c2fe14da6841b142c
treeaef81e15ea578bcb026d2b3a218a0c34fcb64802
parent7d0c2354a5953dd1e40dd2b97c106214822c06a4
test: skip some subtests in no-huge mode

When running with '--no-huge' flag, tests failed with messages as:
    ACL context creation with invalid NUMA should have failed!
    fbk hash creation should have failed
    test_table_pipeline: Check pipeline invalid params failed.

These cases test against invalid socket ID as input parameter, and
expect error return. But function calls return success because
invalid sock ID is overwritten to SOCKET_ID_ANY when in no-huge mode.

The tests against invalid socket ID are skipped in no-huge mode.

Fixes: 5640171c528a ("malloc: fix external heap allocation in no-huge mode")
Cc: stable@dpdk.org
Signed-off-by: Ruifeng Wang <ruifeng.wang@arm.com>
Reviewed-by: Gavin Hu <gavin.hu@arm.com>
Acked-by: Aaron Conole <aconole@redhat.com>
Acked-by: Yipeng Wang <yipeng1.wang@intel.com>
app/test/test_acl.c
app/test/test_hash.c
app/test/test_table_pipeline.c