feat(realm): add test case for FEAT_DoubleFault2 support on TF-RMM

When FEAT_DoubleFault2 is supported, TF-RMM must take into
account bit SCTLR2_EL1.EASE in order to decide whether to inject
a SEA into the sync exception vector or into the serror one.

The test on this patch verifies that TF-RMM injects the SEA
to the right vector depending on SCTLR2.EASE bit.

Signed-off-by: Javier Almansa Sobrino <javier.almansasobrino@arm.com>
Change-Id: I6c976fecb04d123e3efb96c5973b1466e241097f
diff --git a/include/common/test_helpers.h b/include/common/test_helpers.h
index 28b1d4e..6b41e51 100644
--- a/include/common/test_helpers.h
+++ b/include/common/test_helpers.h
@@ -364,6 +364,13 @@
 		}							\
 	} while (false)
 
+#define SKIP_TEST_IF_DOUBLE_FAULT2_NOT_SUPPORTED()				\
+	do {									\
+		if (is_feat_double_fault2_present() == false) {			\
+			return TEST_RESULT_SKIPPED;				\
+		}								\
+	} while (false)
+
 /* Helper macro to verify if system suspend API is supported */
 #define is_psci_sys_susp_supported()	\
 		(tftf_get_psci_feature_info(SMC_PSCI_SYSTEM_SUSPEND)		\