[PATCH v2 0/1] MR3678: mscoree/tests: Catch expected exception in loadpaths.exe.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54202 I don't have a Windows 7 VM available to test (and I don't see them on Win11), but this should hopefully prevent the crash dialogs from popping up. -- v2: mscoree/tests: Catch expected exception in loadpaths.exe. https://gitlab.winehq.org/wine/wine/-/merge_requests/3678
From: Esme Povirk <esme(a)codeweavers.com> Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54202 --- dlls/mscoree/tests/loadpaths.exe.cs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/dlls/mscoree/tests/loadpaths.exe.cs b/dlls/mscoree/tests/loadpaths.exe.cs index 22c32603c59..47e1fab0954 100644 --- a/dlls/mscoree/tests/loadpaths.exe.cs +++ b/dlls/mscoree/tests/loadpaths.exe.cs @@ -16,13 +16,25 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ +using System; + namespace LoadPaths { public static class Test { + static int RunExternal() + { + return new Test2().Foo(); + } + static int Main(string[] args) { - return new Test2().Foo(); + try { + return RunExternal(); + } + catch (TypeLoadException) { + return 1; + } } } } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/3678
Nope, still showing a crash dialog. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/3678#note_43733
participants (2)
-
Esme Povirk -
Esme Povirk (@madewokherd)