test: use memseg walk instead of iteration
authorAnatoly Burakov <anatoly.burakov@intel.com>
Wed, 11 Apr 2018 12:30:06 +0000 (13:30 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 11 Apr 2018 17:53:02 +0000 (19:53 +0200)
commitced746fc312923bbb494cd933b09ae31f9657558
tree63139f4848c385f772ae836181e95eea2c2004c6
parent8f7335c1be7ae44fb751cc39fd22b7833468be1b
test: use memseg walk instead of iteration

Reduce dependency on internal details of EAL memory subsystem, and
simplify code.

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Tested-by: Santosh Shukla <santosh.shukla@caviumnetworks.com>
Tested-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Tested-by: Gowrishankar Muthukrishnan <gowrishankar.m@linux.vnet.ibm.com>
test/test/test_malloc.c
test/test/test_memory.c
test/test/test_memzone.c