Skip to content

Commit 2035b9e

Browse files
author
v-wuzhai
authored
[automated] Merge branch 'release/9.0.3xx' => 'main' (#48385)
2 parents 7ee8760 + c28a176 commit 2035b9e

File tree

1 file changed

+2
-20
lines changed

1 file changed

+2
-20
lines changed

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

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

6547
var publishCommand = new PublishCommand(Log, Path.Combine(testAsset.TestRoot, testProject.Name));
6648
publishCommand
@@ -69,7 +51,7 @@ public void NativeAot_hw_runs_with_no_warnings_when_PublishAot_is_enabled(string
6951
.And.NotHaveStdOutContaining("IL2026")
7052
.And.NotHaveStdErrContaining("NETSDK1179")
7153
.And.NotHaveStdErrContaining("warning")
72-
.And.NotHaveStdOutContaining("warning", ignoredPatterns);
54+
.And.NotHaveStdOutContaining("warning");
7355

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

0 commit comments

Comments
 (0)