malloc: fix unit tests
authorRobert Sanford <rsanford2@gmail.com>
Mon, 23 Jun 2014 21:17:10 +0000 (17:17 -0400)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 26 Jun 2014 11:06:10 +0000 (13:06 +0200)
commit495ea3d9c600e072735c7802f2dda4eb9295c061
tree34d73a1ba35e77aace8517564586944e72e9dddc
parentb0489e7bca2ff3cdefbee23177f0bdde20384a46
malloc: fix unit tests

Fix typos and false assumptions in malloc unit tests.

Without enhancements to lib rte_malloc, malloc autotest fails every
second (2nd) run. With enhancements, malloc autotest fails in
function test_multi_alloc_statistics, because we compare the wrong
sets of statistics.

Signed-off-by: Robert Sanford <rsanford2@gmail.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
app/test/test_malloc.c