Skip to content

Commit 2174803

Browse files
committed
LinkerTests.LinkWithNullAttribute works
1 parent 5b72f03 commit 2174803

File tree

1 file changed

+7
-2
lines changed
  • src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/Tasks

1 file changed

+7
-2
lines changed

src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/Tasks/LinkerTests.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,10 +378,14 @@ public void LinkDescription ([Values (true, false)] bool useAssemblyStore, [Valu
378378
}
379379

380380
[Test]
381-
public void LinkWithNullAttribute ()
381+
public void LinkWithNullAttribute ([Values] AndroidRuntime runtime)
382382
{
383+
const bool isRelease = true;
384+
if (IgnoreUnsupportedConfiguration (runtime, release: isRelease)) {
385+
return;
386+
}
383387
var proj = new XamarinAndroidApplicationProject {
384-
IsRelease = true,
388+
IsRelease = isRelease,
385389
OtherBuildItems = {
386390
new BuildItem ("Compile", "NullAttribute.cs") { TextContent = () => @"
387391
using System;
@@ -414,6 +418,7 @@ public AttributedButtonStub (Context context) : base (context)
414418
}
415419
};
416420

421+
proj.SetRuntime (runtime);
417422
proj.MainActivity = proj.DefaultMainActivity.Replace ("//${AFTER_ONCREATE}",
418423
$@" var myButton = new AttributedButtonStub (this);
419424
myButton.Text = ""Bug #35710"";

0 commit comments

Comments
 (0)