Skip to content

Commit b225f21

Browse files
authored
Re-enable test that was blocking codeflow (#41135)
1 parent f2ae53f commit b225f21

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToRunILLink.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public void ILLink_runs_and_creates_linked_app(string targetFramework, bool refe
9595
DoesDepsFileHaveAssembly(depsFile, unusedFrameworkAssembly).Should().BeFalse();
9696
}
9797

98-
[RequiresMSBuildVersionTheory("17.0.0.32901", Skip = "https://github.com/dotnet/sdk/issues/40882")]
98+
[RequiresMSBuildVersionTheory("17.0.0.32901")]
9999
[MemberData(nameof(SupportedTfms), MemberType = typeof(PublishTestUtils))]
100100
public void ILLink_links_simple_app_without_analysis_warnings_and_it_runs(string targetFramework)
101101
{
@@ -105,10 +105,11 @@ public void ILLink_links_simple_app_without_analysis_warnings_and_it_runs(string
105105
var rid = EnvironmentInfo.GetCompatibleRid(targetFramework);
106106

107107
var testProject = CreateTestProjectForILLinkTesting(targetFramework, projectName);
108+
testProject.AdditionalProperties["PublishTrimmed"] = "true";
108109
var testAsset = _testAssetsManager.CreateTestProject(testProject, identifier: targetFramework + trimMode);
109110

110111
var publishCommand = new PublishCommand(testAsset);
111-
publishCommand.Execute($"/p:RuntimeIdentifier={rid}", "/p:PublishTrimmed=true", $"/p:TrimMode={trimMode}", "/p:SuppressTrimAnalysisWarnings=true")
112+
publishCommand.Execute($"/p:RuntimeIdentifier={rid}", $"/p:TrimMode={trimMode}", "/p:SuppressTrimAnalysisWarnings=true")
112113
.Should().Pass()
113114
.And.NotHaveStdOutContaining("warning IL2075")
114115
.And.NotHaveStdOutContaining("warning IL2026");

0 commit comments

Comments
 (0)