From 1aecc383f38b58acb8e256eae19b217b7e951b6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Strehovsk=C3=BD?= Date: Thu, 7 Sep 2023 23:09:34 +0900 Subject: [PATCH] Try fixing the new unhandled exception test (#91714) The test is failing under NativeAOT in runtime-extra-platforms legs. Our test infra insists on createdump usage. We don't have one for NativeAOT testing. ``` BEGIN EXECUTION /datadisks/disk1/work/A57B093F/p/nativeaottest.sh /datadisks/disk1/work/A57B093F/w/AE63091E/e/baseservices/exceptions/unhandled/unhandled/ unhandled.dll '' "DOTNET_DbgEnableMiniDump is set and the createdump binary does not exist: /datadisks/disk1/work/A57B093F/w/AE63091E/e/baseservices/exceptions/unhandled/unhandled/native/createdump" "Unhandled exception. System.Exception: Test" " at TestUnhandledException.Program.Main(String[] args) + 0xbb" "" Missing Unhandled exception header Expected: 100 Actual: 102 END EXECUTION - FAILED ``` --- src/tests/baseservices/exceptions/unhandled/unhandled.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tests/baseservices/exceptions/unhandled/unhandled.cs b/src/tests/baseservices/exceptions/unhandled/unhandled.cs index 0fa3a4798f2c6..f3f670d6f43a9 100644 --- a/src/tests/baseservices/exceptions/unhandled/unhandled.cs +++ b/src/tests/baseservices/exceptions/unhandled/unhandled.cs @@ -22,6 +22,9 @@ static int Main(string[] args) Process testProcess = new Process(); + // We don't need to trigger createdump logic. + testProcess.StartInfo.Environment.Remove("DOTNET_DbgEnableMiniDump"); + testProcess.StartInfo.FileName = Environment.ProcessPath; testProcess.StartInfo.Arguments = Environment.CommandLine + " throw"; testProcess.StartInfo.RedirectStandardError = true;