feat: print file and line number if `expect` fails
This makes debugging a failed expect easier.
Change-Id: I53a2b3cd1866c14f3983a2e36b94707a94f12ef3
Signed-off-by: Karl Meakin <karl.meakin@arm.com>
diff --git a/spm/cactus/cactus_tests/cactus_test_interrupts.c b/spm/cactus/cactus_tests/cactus_test_interrupts.c
index 2e0249c..c589119 100644
--- a/spm/cactus/cactus_tests/cactus_test_interrupts.c
+++ b/spm/cactus/cactus_tests/cactus_test_interrupts.c
@@ -36,7 +36,7 @@
static void check_sec_wdog_interrupt_triggered(void)
{
handle_sec_wdog_interrupt();
- expect(flag_set, 0);
+ EXPECT(flag_set, 0);
flag_set = 1;
}
@@ -233,7 +233,7 @@
static void sec_interrupt_test_espi_handled(void)
{
- expect(test_espi_handled, false);
+ EXPECT(test_espi_handled, false);
test_espi_handled = true;
NOTICE("Interrupt handler for test espi interrupt called\n");