Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
move log about exit
  • Loading branch information
pavelsavara committed Nov 16, 2021
commit c9ecc18390f4308d027a0286cd6f27b9513a3ea0
3 changes: 2 additions & 1 deletion src/mono/wasm/test-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,14 +230,15 @@ const App = {
globalThis.App = App; // Necessary as System.Runtime.InteropServices.JavaScript.Tests.MarshalTests (among others) call the App.call_test_method directly

function set_exit_code(exit_code, reason) {
originalConsole.log(`Exit called with ${exit_code} when isXUnitDoneCheck=${isXUnitDoneCheck} from ${(new Error()).stack}.`)
if (reason) {
console.error(reason.toString());
if (reason.stack) {
console.error(reason.stack);
}
}
if (is_browser) {
originalConsole.log(`Exit called with ${exit_code} when isXUnitDoneCheck=${isXUnitDoneCheck} from ${(new Error()).stack}.`)

// Notify the selenium script
Module.exit_code = exit_code;

Expand Down