test: register test as failed if setup failed
authorAnatoly Burakov <anatoly.burakov@intel.com>
Fri, 22 Dec 2017 10:21:51 +0000 (10:21 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 17 Jan 2018 23:13:28 +0000 (00:13 +0100)
commit69a95070111f37fb1c7d7ee11956aff2865f6c11
treeaaae7a0c56cba406a42826026924e2f5aa918076
parentd48a189c975ddc98c55fed735f8f9dee121340b8
test: register test as failed if setup failed

If test set up couldn't be completed, the test was previously
shown as succeeding, even though setup failed. Fix this to report
test as failed, and count all tests that should've been executed,
as failed as well.

Fixes: ffac67b1f71b ("app/test: new assert macros and test suite runner")
Cc: stable@dpdk.org
Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Declan Doherty <declan.doherty@intel.com>
test/test/test.c