Merge "Add FixtureIgnoreErrors" am: cb460c91f1 am: 40a2e4ba4d

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1640338

Change-Id: I0f0edf580173800ff69151d8638119b958a4f055
This commit is contained in:
Paul Duffin 2021-03-18 13:12:10 +00:00 committed by Automerger Merge Worker
commit 0a77010254
1 changed files with 8 additions and 0 deletions

View File

@ -506,6 +506,14 @@ var FixtureExpectsNoErrors = FixtureCustomErrorHandler(
},
)
// FixtureIgnoreErrors ignores any errors.
//
// If this is used then it is the responsibility of the test to check the TestResult.Errs does not
// contain any unexpected errors.
var FixtureIgnoreErrors = FixtureCustomErrorHandler(func(t *testing.T, result *TestResult) {
// Ignore the errors
})
// FixtureExpectsAtLeastOneMatchingError returns an error handler that will cause the test to fail
// if at least one error that matches the regular expression is not found.
//