Skip to content

Commit

Permalink
[tests] restore ignored tests from .NET 10 issues
Browse files Browse the repository at this point in the history
Context: dotnet/roslyn-analyzers#7525
Context: dotnet/msbuild#11237

The two above issues are fixed, so we can restore the impacted tests
by partially reverting 37014d1.
  • Loading branch information
jonathanpeppers committed Feb 12, 2025
1 parent 70bd636 commit 8d35027
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -651,8 +651,7 @@ public interface OnFooListener
[NonParallelizable]
public void BuildApplicationWithSpacesInPath ([Values (true, false)] bool enableMultiDex, [Values ("", "r8")] string linkTool)
{
// FIXME: https://github.com/dotnet/msbuild/issues/11237, removed `(` and `)` characters
var folderName = $"BuildReleaseApp AndÜmläüts{enableMultiDex}{linkTool}";
var folderName = $"BuildReleaseApp AndÜmläüts({enableMultiDex}{linkTool})";
var lib = new XamarinAndroidLibraryProject {
IsRelease = true,
ProjectName = "Library1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1133,8 +1133,7 @@ public void BuildProguardEnabledProject (string rid)
if (!string.IsNullOrEmpty (rid)) {
proj.SetProperty ("RuntimeIdentifier", rid);
}
// FIXME: https://github.com/dotnet/msbuild/issues/11237, removed `(` and `)` characters
using (var b = CreateApkBuilder (Path.Combine ("temp", $"BuildProguard Enabled1{rid}"))) {
using (var b = CreateApkBuilder (Path.Combine ("temp", $"BuildProguard Enabled(1){rid}"))) {
Assert.IsTrue (b.Build (proj), "Build should have succeeded.");
// warning XA4304: ProGuard configuration file 'XYZ' was not found.
StringAssertEx.DoesNotContain ("XA4304", b.LastBuildOutput, "Output should *not* contain XA4304 warnings");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1068,7 +1068,6 @@ public void SupportedOSPlatformVersion (string minSdkVersion, bool removeUsesSdk

var minSdkVersionInt = MonoAndroidHelper.ConvertSupportedOSPlatformVersionToApiLevel (minSdkVersion);
if (minSdkVersionInt < 22) {
Assert.Ignore ("https://github.com/dotnet/roslyn-analyzers/issues/7525");
StringAssertEx.Contains ("warning CA1416", builder.LastBuildOutput, "Should get warning about Android 22 API");
} else {
builder.AssertHasNoWarnings ();
Expand Down

0 comments on commit 8d35027

Please sign in to comment.