Skip to content

Commit

Permalink
Reduce the output from tests. (#61593)
Browse files Browse the repository at this point in the history
- Do not printout exceptions from failing task tests.
- Remove default MONO_LOG_MASK=gc from debug configuration.
  • Loading branch information
maraf committed Nov 18, 2021
1 parent 23c386a commit d9afc1e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,7 @@ private static async Task<bool> MarshalTask(string helperMethodName, string help
$@"var t = App.call_test_method ('{helperMethodName}', [ {helperMethodArgs} ], 'i'); " +
"t.finally(result => { globalThis.__test_promise_completed = true; }); " +
"t.then(result => { globalThis.__test_promise_resolved = true; " + resolvedBody + " }); " +
"t.catch(e => { console.log(e); globalThis.__test_promise_failed = true; }); "
"t.catch(e => { globalThis.__test_promise_failed = true; }); "
);

await Task.Delay(1);
Expand Down
6 changes: 3 additions & 3 deletions src/mono/wasm/runtime/driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -485,12 +485,12 @@ mono_wasm_load_runtime (const char *unused, int debug_level)
#endif

#ifdef DEBUG
monoeg_g_setenv ("MONO_LOG_LEVEL", "debug", 0);
monoeg_g_setenv ("MONO_LOG_MASK", "gc", 0);
// monoeg_g_setenv ("MONO_LOG_LEVEL", "debug", 0);
// monoeg_g_setenv ("MONO_LOG_MASK", "gc", 0);
// Setting this env var allows Diagnostic.Debug to write to stderr. In a browser environment this
// output will be sent to the console. Right now this is the only way to emit debug logging from
// corlib assemblies.
monoeg_g_setenv ("COMPlus_DebugWriteToStdErr", "1", 0);
// monoeg_g_setenv ("COMPlus_DebugWriteToStdErr", "1", 0);
#endif
// When the list of app context properties changes, please update RuntimeConfigReservedProperties for
// target _WasmGenerateRuntimeConfig in WasmApp.targets file
Expand Down

0 comments on commit d9afc1e

Please sign in to comment.