refactor: do_panic: modify expec string for panic.
Current TF-A code was using spsr_el3 to decide panic from lower or el3
and using that in error string, so tests were assuming its from el2,
the string gets modified to say its from lower el not rely in string el2.
Signed-off-by: Govindraj Raja <govindraj.raja@arm.com>
Change-Id: Ib466c559296fd97e04a421dc49495239e6b7fd5c
diff --git a/expect-lava/crash_test.exp b/expect-lava/crash_test.exp
index ab6c3ec..0449bf5 100644
--- a/expect-lava/crash_test.exp
+++ b/expect-lava/crash_test.exp
@@ -7,7 +7,7 @@
#
expect_string+=('i;Unhandled External Abort received')
-expect_string+=('i;Unhandled Exception from EL2')
+expect_string+=('i;Unhandled Exception from lower EL')
source $ci_root/expect-lava/exception_gp_regs.inc
expect_string+=("i;x30")
source $ci_root/expect-lava/exception_sys_regs.inc
diff --git a/expect/crash_test.exp b/expect/crash_test.exp
index b5ea5a4..3957134 100644
--- a/expect/crash_test.exp
+++ b/expect/crash_test.exp
@@ -9,7 +9,7 @@
source [file join [file dirname [info script]] handle-arguments.inc]
expect_string "Unhandled External Abort received"
-expect_string "Unhandled Exception from EL2"
+expect_string "Unhandled Exception from lower EL"
source [file join [file dirname [info script]] exception_gp_regs.inc]
expect_string "x30"
diff --git a/expect/timeout.inc b/expect/timeout.inc
index 6d5d0de..c8d9ac1 100644
--- a/expect/timeout.inc
+++ b/expect/timeout.inc
@@ -19,7 +19,7 @@
message "expected hang, found crash dump"
}
- "Unhandled Exception from EL" {
+ "Unhandled Exception from lower EL" {
message "expected hang, found crash dump"
}