Skip to content

Commit c49fd64

Browse files
1 parent 97b1e3b commit c49fd64

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

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

+6-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,12 @@ public void BuildHasNoWarnings (bool isRelease, bool xamarinForms, bool multidex
260260
proj.SetProperty ("TrimmerSingleWarn", "false");
261261
using (var b = CreateApkBuilder (Path.Combine ("temp", TestName))) {
262262
Assert.IsTrue (b.Build (proj), "Build should have succeeded.");
263-
b.AssertHasNoWarnings ();
263+
// FIXME: https://github.com/dotnet/runtime/issues/100256
264+
if (isRelease) {
265+
Assert.IsTrue (StringAssertEx.ContainsText (b.LastBuildOutput, " 1 Warning(s)"), $"{b.BuildLogFile} should have 1 MSBuild warning.");
266+
} else {
267+
b.AssertHasNoWarnings ();
268+
}
264269
Assert.IsFalse (StringAssertEx.ContainsText (b.LastBuildOutput, "Warning: end of file not at end of a line"),
265270
"Should not get a warning from the <CompileNativeAssembly/> task.");
266271
var lockFile = Path.Combine (Root, b.ProjectDirectory, proj.IntermediateOutputPath, ".__lock");

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ public void DotNetNew ([Values ("android", "androidlib", "android-bindinglib", "
4242

4343
// Release build
4444
Assert.IsTrue (dotnet.Build (parameters: new [] { "Configuration=Release", "TrimmerSingleWarn=false" }), "`dotnet build` should succeed");
45-
dotnet.AssertHasNoWarnings ();
45+
// FIXME: https://github.com/dotnet/runtime/issues/100256
46+
//dotnet.AssertHasNoWarnings ();
47+
Assert.IsTrue (StringAssertEx.ContainsText (dotnet.LastBuildOutput, " 1 Warning(s)"), $"{dotnet.BuildLogFile} should have 1 MSBuild warning.");
4648
}
4749

4850
static readonly object[] DotNetPackTargetFrameworks = new object[] {

0 commit comments

Comments
 (0)