Convert testJavaError to test fixtures
Bug: 182638834 Test: m nothing Change-Id: If6de91cd60fea36c945f2b0d51a04e26c838e4af
This commit is contained in:
parent
0ed42d3c9d
commit
6bac49c560
1 changed files with 5 additions and 1 deletions
|
@ -147,7 +147,11 @@ func run(t *testing.T, ctx *android.TestContext, config android.Config) {
|
|||
// deprecated
|
||||
func testJavaError(t *testing.T, pattern string, bp string) (*android.TestContext, android.Config) {
|
||||
t.Helper()
|
||||
return testJavaErrorWithConfig(t, pattern, testConfig(nil, bp, nil))
|
||||
result := javaFixtureFactory.
|
||||
Extend(dexpreopt.PrepareForTestWithDexpreopt).
|
||||
ExtendWithErrorHandler(android.FixtureExpectsAtLeastOneErrorMatchingPattern(pattern)).
|
||||
RunTestWithBp(t, bp)
|
||||
return result.TestContext, result.Config
|
||||
}
|
||||
|
||||
// testJavaErrorWithConfig is a legacy way of running tests of java modules that expect errors.
|
||||
|
|
Loading…
Reference in a new issue