Enable bitcode compilation for AOT (#36471)

This commit is contained in:
Dan Field
2019-07-18 22:42:47 -07:00
committed by GitHub
parent e6128a0c14
commit c953cd19d2
14 changed files with 486 additions and 26 deletions

View File

@@ -141,3 +141,14 @@ const Timeout allowForRemotePubInvocation = Timeout.factor(10.0);
/// Test case timeout for tests involving creating a Flutter project with
/// `--no-pub`. Use [allowForRemotePubInvocation] when creation involves `pub`.
const Timeout allowForCreateFlutterProject = Timeout.factor(3.0);
Future<void> expectToolExitLater(Future<dynamic> future, Matcher messageMatcher) async {
try {
await future;
fail('ToolExit expected, but nothing thrown');
} on ToolExit catch(e) {
expect(e.message, messageMatcher);
} catch(e, trace) {
fail('ToolExit expected, got $e\n$trace');
}
}

View File

@@ -606,4 +606,7 @@ class FakeProcessResult implements ProcessResult {
@override
final dynamic stdout;
@override
String toString() => stdout?.toString() ?? stderr?.toString() ?? runtimeType.toString();
}