Tests: add helpers for synchronizecache

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
Ronnie Sahlberg
2016-02-21 12:22:20 -08:00
parent ea8e4c4115
commit d3913ee864
2 changed files with 46 additions and 19 deletions

View File

@@ -434,6 +434,34 @@ do { \
CU_ASSERT_EQUAL(_r, 0); \
} while (0);
#define SYNCHRONIZECACHE10(...) \
do { \
int _r; \
_r = synchronizecache10(__VA_ARGS__); \
if (_r == -2) { \
logging(LOG_NORMAL, "[SKIPPED] SYNCHRONIZECACHE10 " \
"is not implemented."); \
CU_PASS("[SKIPPED] Target does not support " \
"SYNCHRONIZECACHE10. Skipping test"); \
return; \
} \
CU_ASSERT_EQUAL(_r, 0); \
} while (0);
#define SYNCHRONIZECACHE16(...) \
do { \
int _r; \
_r = synchronizecache16(__VA_ARGS__); \
if (_r == -2) { \
logging(LOG_NORMAL, "[SKIPPED] SYNCHRONIZECACHE16 " \
"is not implemented."); \
CU_PASS("[SKIPPED] Target does not support " \
"SYNCHRONIZECACHE16. Skipping test"); \
return; \
} \
CU_ASSERT_EQUAL(_r, 0); \
} while (0);
#define TESTUNITREADY(...) \
do { \
int _r; \