[2020-02][merp] Capture Environment.FailFast message in crash report (#18920)
commitdaf5d55df9b2209389a22998ceb73ae18b4589b6
authorAleksey Kliger (λgeek) <alklig@microsoft.com>
Wed, 19 Feb 2020 20:32:13 +0000 (19 15:32 -0500)
committerGitHub <noreply@github.com>
Wed, 19 Feb 2020 20:32:13 +0000 (19 21:32 +0100)
treebf19c114b548edb3b08f91094700cb3543379098
parentab4049e21973d73a8c9742a761e91d5ecb07f152
[2020-02][merp] Capture Environment.FailFast message in crash report (#18920)

* [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.
mono/metadata/icall.c
mono/tests/merp-crash-test.cs
mono/utils/mono-state.c
mono/utils/mono-state.h