fix(expect): update crash test expectations
This change updates the crash test expectations to reflect the real
output of their tests, as they've become outdated. We haven't noticed
because these scripts were not attached to the payload UART of any
tests, which is the only situation in which the result of the Expect
script could determine the success of the test.
This change also ensures that tests using these scripts have them set as
the payload script, as opposed to the timeout scripts they typically
use.
Signed-off-by: Chris Kay <chris.kay@arm.com>
Change-Id: Ic9870a0aa6a191cdb6b02fcedeaea0490377704c
(cherry picked from commit 62b4f78bbed522c13675b5411aac91acd32d8eff)
diff --git a/expect/crash_test.exp b/expect/crash_test.exp
index 1152abc..a8c31be 100644
--- a/expect/crash_test.exp
+++ b/expect/crash_test.exp
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2019-2020 Arm Limited. All rights reserved.
+# Copyright (c) 2019-2022 Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
@@ -9,10 +9,7 @@
source [file join [file dirname [info script]] handle-arguments.inc]
expect_string "Unhandled External Abort received"
-expect_string "BACKTRACE: START: plat_ea_handler"
-expect_string "BACKTRACE: END: plat_ea_handler"
-expect_string "PANIC in EL3"
-expect_string "x30"
+expect_string "Unhandled Exception from EL2"
expect_string "x0"
expect_string "x1"
expect_string "x2"
@@ -43,6 +40,7 @@
expect_string "x27"
expect_string "x28"
expect_string "x29"
+expect_string "x30"
expect_string "scr_el3"
expect_string "sctlr_el3"
expect_string "cptr_el3"