File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
TESTS/mbed_platform/crash_reporting Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -53,12 +53,17 @@ void test_crash_reporting()
53
53
54
54
// Report readiness
55
55
greentea_send_kv (MSG_KEY_DEVICE_READY, MSG_VALUE_DUMMY);
56
+ printf (" \n Message sent: %s\n " , MSG_KEY_DEVICE_READY);
56
57
57
58
static char _key[MSG_KEY_LEN + 1 ] = { };
58
59
static char _value[MSG_VALUE_LEN + 1 ] = { };
59
60
61
+ printf (" \n Waiting for crash inject error message: %s\n " , MSG_KEY_DEVICE_ERROR);
60
62
greentea_parse_kv (_key, _value, MSG_KEY_LEN, MSG_VALUE_LEN);
63
+ printf (" \n Crash inject error message received\n " );
64
+
61
65
if (strcmp (_key, MSG_KEY_DEVICE_ERROR) == 0 ) {
66
+ printf (" \n Forcing error\n " );
62
67
MBED_ERROR1 (MBED_ERROR_OUT_OF_MEMORY, " Executing crash reporting test." , 0xDEADBAD );
63
68
TEST_ASSERT_MESSAGE (0 , " crash_reporting() error call failed." );
64
69
}
You can’t perform that action at this time.
0 commit comments