test/barrier: fix allocation check
authorDavid Christensen <drc@linux.vnet.ibm.com>
Wed, 8 May 2019 21:02:19 +0000 (16:02 -0500)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 9 May 2019 19:56:10 +0000 (21:56 +0200)
commit50882a1ec02173f4ef30facb5c7c18a60ef65472
treefa73ae92ceb7bd15a91536dd4751ceae3fa9f9c9
parent834e4896a5a24d8fae72e9ad3f83bac2a537f8b8
test/barrier: fix allocation check

Code tested calloc failures for pt & lpt variables
but not for the sum variable. Add a test for calloc
failure of sum.

Fixes: 93da5b59afc9 ("test: introduce memory barrier test case")
Cc: stable@dpdk.org
Signed-off-by: David Christensen <drc@linux.vnet.ibm.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
app/test/test_barrier.c