summaryrefslogtreecommitdiff
path: root/include/common/test_helpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/common/test_helpers.h')
-rw-r--r--include/common/test_helpers.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/common/test_helpers.h b/include/common/test_helpers.h
index 05ecbb8..c628ee8 100644
--- a/include/common/test_helpers.h
+++ b/include/common/test_helpers.h
@@ -90,6 +90,15 @@ typedef test_result_t (*test_function_arg_t)(void *arg);
} \
} while (0)
+#define SKIP_TEST_IF_DIT_NOT_SUPPORTED() \
+ do { \
+ if (!is_armv8_4_dit_present()) { \
+ tftf_testcase_printf( \
+ "DIT not supported\n"); \
+ return TEST_RESULT_SKIPPED; \
+ } \
+ } while (0)
+
#define SKIP_TEST_IF_PAUTH_NOT_SUPPORTED() \
do { \
if (!is_armv8_3_pauth_present()) { \