cl20: Reuse test harness code in printf

Some of the setup functionality is already there in the test harness, so
use that and remove the duplicated code from within the suite.

Signed-off-by: Radek Szymanski <radek.szymanski@arm.com>
This commit is contained in:
Radek Szymanski
2016-05-10 16:36:13 +01:00
committed by Kévin Petit
parent a05daeae7e
commit 591b7c9185
2 changed files with 116 additions and 163 deletions

View File

@@ -119,7 +119,7 @@ size_t verifyOutputBuffer(char *analysisBuffer,testCase* pTestCase,size_t testId
#define checkNull(ptr, msg) \
if (!ptr) { \
log_error("%s failed\n", msg); \
return -1; \
return TEST_FAIL; \
}
// When a helper returns a negative one, we want to return from main