From c9c3e578c15e0fcb2e79e2abc971bf637c8ad046 Mon Sep 17 00:00:00 2001 From: Ankit Jain Date: Thu, 16 Sep 2021 11:01:56 -0400 Subject: [PATCH] re-enable some tests that got disabled by mistake --- .../BuildWasmApps/Wasm.Build.Tests/MainWithArgsTests.cs | 4 ++-- .../NativeRebuildTests/NativeRebuildTestsBase.cs | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/tests/BuildWasmApps/Wasm.Build.Tests/MainWithArgsTests.cs b/src/tests/BuildWasmApps/Wasm.Build.Tests/MainWithArgsTests.cs index d64188ee86d7b..b97a0490d2e87 100644 --- a/src/tests/BuildWasmApps/Wasm.Build.Tests/MainWithArgsTests.cs +++ b/src/tests/BuildWasmApps/Wasm.Build.Tests/MainWithArgsTests.cs @@ -25,8 +25,8 @@ public MainWithArgsTests(ITestOutputHelper output, SharedBuildPerTestClassFixtur ).WithRunHosts(host).UnwrapItemsAsArrays(); [Theory] - // [MemberData(nameof(MainWithArgsTestData), parameters: new object[] { /*aot*/ false, RunHost.All })] - [MemberData(nameof(MainWithArgsTestData), parameters: new object[] { /*aot*/ true, RunHost.V8 })] + [MemberData(nameof(MainWithArgsTestData), parameters: new object[] { /*aot*/ false, RunHost.All })] + [MemberData(nameof(MainWithArgsTestData), parameters: new object[] { /*aot*/ true, RunHost.All })] public void AsyncMainWithArgs(BuildArgs buildArgs, string[] args, RunHost host, string id) => TestMainWithArgs("async_main_with_args", @" public class TestClass { diff --git a/src/tests/BuildWasmApps/Wasm.Build.Tests/NativeRebuildTests/NativeRebuildTestsBase.cs b/src/tests/BuildWasmApps/Wasm.Build.Tests/NativeRebuildTests/NativeRebuildTestsBase.cs index 038027f56a4ab..9047fd062a82e 100644 --- a/src/tests/BuildWasmApps/Wasm.Build.Tests/NativeRebuildTests/NativeRebuildTestsBase.cs +++ b/src/tests/BuildWasmApps/Wasm.Build.Tests/NativeRebuildTests/NativeRebuildTestsBase.cs @@ -28,8 +28,8 @@ public NativeRebuildTestsBase(ITestOutputHelper output, SharedBuildPerTestClassF { List data = new(); // relinking - // data.AddRange(GetData(aot: false, nativeRelinking: true, invariant: false)); - // data.AddRange(GetData(aot: false, nativeRelinking: true, invariant: true)); + data.AddRange(GetData(aot: false, nativeRelinking: true, invariant: false)); + data.AddRange(GetData(aot: false, nativeRelinking: true, invariant: true)); // aot data.AddRange(GetData(aot: true, nativeRelinking: false, invariant: false)); @@ -76,7 +76,6 @@ protected string Rebuild(bool nativeRelink, bool invariant, BuildArgs buildArgs, File.WriteAllText(Path.Combine(_projectDir!, $"{buildArgs.ProjectName}.csproj"), buildArgs.ProjectFileContents); buildArgs = newBuildArgs; - Console.WriteLine($"{Environment.NewLine}Rebuilding with no changes ..{Environment.NewLine}"); _testOutput.WriteLine($"{Environment.NewLine}Rebuilding with no changes ..{Environment.NewLine}"); (_, string output) = BuildProject(buildArgs, id: id,