cl21: 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 675d188040
commit 063aeecd9d
2 changed files with 116 additions and 164 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