Skip to content

Commit 975131d

Browse files
author
v-wuzhai
authored
[automated] Merge branch 'release/8.0.3xx' => 'release/8.0.4xx' (#48154)
2 parents 5b89911 + c7f4141 commit 975131d

File tree

1 file changed

+2
-20
lines changed

1 file changed

+2
-20
lines changed

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

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -39,25 +39,7 @@ public void NativeAot_hw_runs_with_no_warnings_when_PublishAot_is_enabled(string
3939
{
4040
testProject.AdditionalProperties["StripSymbols"] = "true";
4141
}
42-
var testAsset = _testAssetsManager.CreateTestProject(testProject, identifier: targetFramework);
43-
44-
string[] ignoredPatterns = null;
45-
46-
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
47-
{
48-
ignoredPatterns = new string[]
49-
{
50-
// Both these exclusions can be removed once the min tested version is .NET 10 and the min supported
51-
// XCode version is XCode 16.
52-
53-
// -ld_classic option is required to workaround bugs in XCode 15 and .NET 9 and older runtimes.
54-
// See https://github.com/dotnet/runtime/issues/97745 for details.
55-
"ld: warning: -ld_classic is deprecated and will be removed in a future release",
56-
// These warnings show up when dotnet/runtime compiled using Apple clang 15+ is used
57-
// with classic linker (either Apple clang 14 or clang 15+ with -ld_classic).
58-
"ld: warning: __LD,__compact_unwind entries for",
59-
};
60-
}
42+
var testAsset = _testAssetsManager.CreateTestProject(testProject);
6143

6244
var publishCommand = new PublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name));
6345
publishCommand
@@ -66,7 +48,7 @@ public void NativeAot_hw_runs_with_no_warnings_when_PublishAot_is_enabled(string
6648
.And.NotHaveStdOutContaining("IL2026")
6749
.And.NotHaveStdErrContaining("NETSDK1179")
6850
.And.NotHaveStdErrContaining("warning")
69-
.And.NotHaveStdOutContaining("warning", ignoredPatterns);
51+
.And.NotHaveStdOutContaining("warning");
7052

7153
var buildProperties = testProject.GetPropertyValues(testAsset.TestRoot, targetFramework);
7254
var rid = buildProperties["NETCoreSdkPortableRuntimeIdentifier"];

0 commit comments

Comments
 (0)