[merp] Capture Environment.FailFast message in crash report (#18863)
commit972896b2f1224a3c470f22950f69a5475eeadfaf
authorAleksey Kliger (λgeek) <alklig@microsoft.com>
Tue, 18 Feb 2020 20:59:14 +0000 (18 15:59 -0500)
committerGitHub <noreply@github.com>
Tue, 18 Feb 2020 20:59:14 +0000 (18 15:59 -0500)
tree6ddc33dcc7f0a1a3d6d381e6442191951b37a550
parent4b96fefa7ab8d739653ada204f33c8b0689a2b80
[merp] Capture Environment.FailFast message in crash report (#18863)

* [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