Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Adjust assertions
  • Loading branch information
jonathanpeppers committed Mar 28, 2024
commit 7db3d321c355d1dcb7c801848ce18f5c132fdc07
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ public void BuildHasNoWarnings (bool isRelease, bool xamarinForms, bool multidex
using (var b = CreateApkBuilder (Path.Combine ("temp", TestName))) {
Assert.IsTrue (b.Build (proj), "Build should have succeeded.");
// FIXME: https://github.com/dotnet/runtime/issues/100256
if (isRelease) {
if (proj.TrimModeRelease == TrimMode.Full) {
Assert.IsTrue (StringAssertEx.ContainsText (b.LastBuildOutput, " 1 Warning(s)"), $"{b.BuildLogFile} should have 1 MSBuild warning.");
} else {
b.AssertHasNoWarnings ();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,11 @@ public void DotNetNew ([Values ("android", "androidlib", "android-bindinglib", "
// Release build
Assert.IsTrue (dotnet.Build (parameters: new [] { "Configuration=Release", "TrimmerSingleWarn=false" }), "`dotnet build` should succeed");
// FIXME: https://github.com/dotnet/runtime/issues/100256
//dotnet.AssertHasNoWarnings ();
Assert.IsTrue (StringAssertEx.ContainsText (dotnet.LastBuildOutput, " 1 Warning(s)"), $"{dotnet.BuildLogFile} should have 1 MSBuild warning.");
if (template.Contains ("lib")) {
dotnet.AssertHasNoWarnings ();
} else {
Assert.IsTrue (StringAssertEx.ContainsText (dotnet.LastBuildOutput, " 1 Warning(s)"), $"{dotnet.BuildLogFile} should have 1 MSBuild warning.");
}
}

static readonly object[] DotNetPackTargetFrameworks = new object[] {
Expand Down