From 080fcae7eaa8367abf7900e08ff2e52e3efea5bf Mon Sep 17 00:00:00 2001 From: Ilona Tomkowicz <32700855+ilonatommy@users.noreply.github.com> Date: Wed, 25 Sep 2024 07:48:34 +0200 Subject: [PATCH] `WasmBuildTest` can exit with negative code. (#108181) --- src/mono/wasm/Wasm.Build.Tests/BrowserRunner.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mono/wasm/Wasm.Build.Tests/BrowserRunner.cs b/src/mono/wasm/Wasm.Build.Tests/BrowserRunner.cs index e632ab472791a..7234bd908c070 100644 --- a/src/mono/wasm/Wasm.Build.Tests/BrowserRunner.cs +++ b/src/mono/wasm/Wasm.Build.Tests/BrowserRunner.cs @@ -18,7 +18,7 @@ internal class BrowserRunner : IAsyncDisposable { private static Regex s_blazorUrlRegex = new Regex("Now listening on: (?https?://.*$)"); private static Regex s_appHostUrlRegex = new Regex("^App url: (?https?://.*$)"); - private static Regex s_exitRegex = new Regex("WASM EXIT (?[0-9]+)$"); + private static Regex s_exitRegex = new Regex("WASM EXIT (?-?[0-9]+)$"); private static readonly Lazy s_chromePath = new(() => { string artifactsBinDir = Path.Combine(Path.GetDirectoryName(typeof(BuildTestBase).Assembly.Location)!, "..", "..", "..", "..");