[dpdk-dev] [PATCH v2] test: fix missing NULL pointer checks

2015-01-27 Thread Thomas Monjalon
2015-01-27 15:17, Daniel Mrzyglod: > In test_sched, we are missing NULL pointer checks after calls to create the > mempool and to allocate an mbuf. Add in these checks using > TEST_ASSERT_NOT_NULL macros. > > Signed-off-by: Daniel Mrzyglod [...] > + TEST_ASSERT_NOT_NULL(mp, "Error create mem

[dpdk-dev] [PATCH v2] test: fix missing NULL pointer checks

2015-01-27 Thread Thomas Monjalon
2015-01-27 15:17, Daniel Mrzyglod: > In test_sched, we are missing NULL pointer checks after calls to create the > mempool and to allocate an mbuf. Add in these checks using > TEST_ASSERT_NOT_NULL macros. You are adding checks *and* replacing VERIFY by TEST_ASSERT_NOT_NULL. It would be better to

[dpdk-dev] [PATCH v2] test: fix missing NULL pointer checks

2015-01-27 Thread Daniel Mrzyglod
In test_sched, we are missing NULL pointer checks after calls to create the mempool and to allocate an mbuf. Add in these checks using TEST_ASSERT_NOT_NULL macros. Signed-off-by: Daniel Mrzyglod --- app/test/test_sched.c | 23 --- 1 file changed, 12 insertions(+), 11 deletio