[2019-12] [merp] Capture Environment.FailFast message in crash report (#18921)mono-6.10.0.79
commitf7f561703a50ab1c5fbe3cf2392265c007b35b34
authormonojenkins <jo.shields+jenkins@xamarin.com>
Wed, 19 Feb 2020 19:16:29 +0000 (19 14:16 -0500)
committerGitHub <noreply@github.com>
Wed, 19 Feb 2020 19:16:29 +0000 (19 20:16 +0100)
tree3283c2b0dd15feff2f875397068be3517db6b2e3
parentb5b50eefe7a9558ab6540a44defc45c71308f391
[2019-12] [merp] Capture Environment.FailFast message in crash report (#18921)

* [merp] Capture Environment.FailFast message in crash report

* [test] merp-crash-test refactor crasher data; add optional validator

Switch from a Tuple<T1,T2> to a struct for the crash items.  Add a third
optional validator field which is an action to run on the json blob that we get
back.

Not updating existing tests to do any json validation, yet.

* [test] Add new MERP crash test for Environment.FailFast

Check that the resulting json blob includes the failfast message.

Co-authored-by: Aleksey Kliger (λgeek) <akliger@gmail.com>
mono/metadata/icall.c
mono/tests/merp-crash-test.cs
mono/utils/mono-state.c
mono/utils/mono-state.h