app/test: fix missing NULL pointer checks
authorDaniel Mrzyglod <danielx.t.mrzyglod@intel.com>
Tue, 27 Jan 2015 15:44:53 +0000 (16:44 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 24 Feb 2015 20:53:24 +0000 (21:53 +0100)
commitd6fe2f5ee041b650a9f0829e3004c72f0c5a4634
treeee363c04159bc70f104696106303bdc1bcbcd088
parent23df14d1baf53eb014207f438beee81677d46186
app/test: fix missing NULL pointer checks

In test_sched, we are missing NULL pointer checks after create_mempool()
and rte_pktmbuf_alloc(). Add in these checks using TEST_ASSERT_NOT_NULL macros.

VERIFY macro was removed and replaced by standard test ASSERTS from "test.h" header.
This provides additional information to track when the failure occurred.

Signed-off-by: Daniel Mrzyglod <danielx.t.mrzyglod@intel.com>
app/test/test_sched.c