<DefineConstants>$(DefineConstants);NETSTANDARD</DefineConstants>
<!--Remove once this is fixed, https://github.com/dotnet/runtime/issues/71506 -->
<IlcTrimMetadata>false</IlcTrimMetadata>
-
- <!-- this test project is too slow with extra start of another runtime -->
- <WasmXHarnessMonoArgs>$(WasmXHarnessMonoArgs) --no-memory-snapshot</WasmXHarnessMonoArgs>
</PropertyGroup>
<PropertyGroup Condition="'$(TargetOS)' == 'browser'">
<TestArchiveTestsRoot>$(TestArchiveRoot)browserornodejs/</TestArchiveTestsRoot>
<TestArchiveTestsDir>$(TestArchiveTestsRoot)$(OSPlatformConfig)/</TestArchiveTestsDir>
<DefineConstants>$(DefineConstants);TARGET_BROWSER</DefineConstants>
+ <WasmXHarnessMonoArgs>--setenv=XHARNESS_LOG_TEST_START=true --no-memory-snapshot</WasmXHarnessMonoArgs>
+ <WasmXHarnessTestsTimeout>00:45:00</WasmXHarnessTestsTimeout>
</PropertyGroup>
<ItemGroup>
}
}
- if (typeof payload === "string" && id !== "main")
- payload = `[${id}] ${payload}`;
+ if (typeof payload === "string") {
+ if (payload[0] == "[") {
+ const now = new Date().toISOString();
+ if (id !== "main") {
+ payload = `[${id}][${now}] ${payload}`;
+ } else {
+ payload = `[${now}] ${payload}`;
+ }
+ } else if (id !== "main") {
+ payload = `[${id}] ${payload}`;
+ }
+ }
if (asJson) {
func(JSON.stringify({
if (is_node) {
// the emscripten 3.1.34 stopped handling these when MODULARIZE is enabled
- process.on('uncaughtException', function(ex) {
+ process.on('uncaughtException', function (ex) {
// ignore UnhandledPromiseRejection exceptions with exit status
if (ex !== 'unwind' && (ex.name !== "UnhandledPromiseRejection" || !ex.message.includes('"#<ExitStatus>"'))) {
- throw ex;
+ throw ex;
}
- });
+ });
}
if (!is_node && !is_browser && typeof globalThis.crypto === 'undefined') {
const main_assembly_name = runArgs.applicationArguments[1];
const app_args = runArgs.applicationArguments.slice(2);
const result = await App.runtime.runMain(main_assembly_name, app_args);
+ console.log(`test-main.js exiting ${app_args.length > 1 ? main_assembly_name + " " + app_args[0] : main_assembly_name} with result ${result}`);
mono_exit(result);
} catch (error) {
if (error.name != "ExitStatus") {