From 704c739c40ce1c776680813e1fccaf4a3b266cde Mon Sep 17 00:00:00 2001 From: Simon Rozsival Date: Tue, 30 Aug 2022 18:01:31 +0200 Subject: [PATCH] [wasm-mt] Log exit codes in browser samples to prevent tests from timeouting (#74637) * Update browser-thread sample * Update the browser-eventpipe sample * Fix wasm_exit * Revert eventpipe sample changes that didn't resolve the problem * Use new JS api * Try to use the new API also for the eventpipe sample * Revert "Try to use the new API also for the eventpipe sample" This reverts commit 9a10dc4abefcb7a27314be8349b3b93fcc00c3f7. --- src/mono/sample/wasm/browser-threads/main.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mono/sample/wasm/browser-threads/main.js b/src/mono/sample/wasm/browser-threads/main.js index fe5efc7735d..9b739d474e9 100644 --- a/src/mono/sample/wasm/browser-threads/main.js +++ b/src/mono/sample/wasm/browser-threads/main.js @@ -54,6 +54,8 @@ try { const inputElement = document.getElementById("inputN"); const { setModuleImports, getAssemblyExports, runMain } = await dotnet .withEnvironmentVariable("MONO_LOG_LEVEL", "debug") + .withElementOnExit() + .withExitCodeLogging() .create(); setModuleImports("main.js", { -- GitLab