Roll engine to e976be13c51448f89107d082ec81e2b6731671fa (#17266)

* Roll engine to e976be13c51448f89107d082ec81e2b6731671fa

* move away from deprecated constants
This commit is contained in:
Yegor
2018-05-03 19:24:48 -07:00
committed by GitHub
parent c9954f1053
commit b2c98f9a4e
39 changed files with 75 additions and 74 deletions

View File

@@ -11,7 +11,7 @@ import 'package:flutter_test/flutter_test.dart';
void main() {
test('test smoke test -- this test should fail', () async {
if (system.Process.killPid(system.pid, system.ProcessSignal.SIGSEGV)) {
if (system.Process.killPid(system.pid, system.ProcessSignal.sigsegv)) {
print('system.Process.killPid returned before the process ended!');
print('Sleeping for a few seconds just in case signal delivery is delayed or our signal handler is being slow...');
system.sleep(const Duration(seconds: 10)); // don't sleep too much, we must not time out

View File

@@ -8,5 +8,5 @@ import 'dart:io' as system;
// see //flutter/dev/bots/test.dart
void main() {
system.Process.killPid(system.pid, system.ProcessSignal.SIGSEGV);
system.Process.killPid(system.pid, system.ProcessSignal.sigsegv);
}

View File

@@ -131,7 +131,7 @@ class FlutterProject {
final File buildScript = new File(
path.join(androidPath, 'app', 'build.gradle'),
);
buildScript.openWrite(mode: FileMode.APPEND).write('''
buildScript.openWrite(mode: FileMode.append).write('''
android {
buildTypes {
@@ -147,7 +147,7 @@ android {
final File buildScript = new File(
path.join(androidPath, 'app', 'build.gradle'),
);
buildScript.openWrite(mode: FileMode.APPEND).write('''
buildScript.openWrite(mode: FileMode.append).write('''
android {
flavorDimensions "mode"

View File

@@ -52,7 +52,7 @@ Future<Null> _patchXcconfigFilesIfNotPatched(String flutterProjectPath) async {
final String contents = await file.readAsString();
final bool alreadyPatched = contents.contains(include);
if (!alreadyPatched) {
final IOSink patchOut = file.openWrite(mode: FileMode.APPEND);
final IOSink patchOut = file.openWrite(mode: FileMode.append);
patchOut.writeln(); // in case EOF is not preceded by line break
patchOut.writeln(include);
await patchOut.close();

View File

@@ -67,14 +67,14 @@ Future<Map<String, dynamic>> runTask(String taskName, { bool silent: false }) as
await runner.exitCode.timeout(const Duration(seconds: 1));
return taskResult;
} on TimeoutException catch (timeout) {
runner.kill(ProcessSignal.SIGINT);
runner.kill(ProcessSignal.sigint);
return <String, dynamic>{
'success': false,
'reason': 'Timeout waiting for $waitingFor: ${timeout.message}',
};
} finally {
if (!runnerFinished)
runner.kill(ProcessSignal.SIGKILL);
runner.kill(ProcessSignal.sigkill);
await stdoutSub.cancel();
await stderrSub.cancel();
}

View File

@@ -460,7 +460,7 @@ Future<int> findAvailablePort() async {
while (true) {
try {
final ServerSocket socket =
await ServerSocket.bind(InternetAddress.LOOPBACK_IP_V4, port);
await ServerSocket.bind(InternetAddress.loopbackIPv4, port);
await socket.close();
return port;
} catch (_) {

View File

@@ -126,7 +126,7 @@ Future<Map<String, double>> _readJsonResults(Process process) {
if (line.contains(jsonEnd)) {
jsonStarted = false;
processWasKilledIntentionally = true;
process.kill(ProcessSignal.SIGINT); // flutter run doesn't quit automatically
process.kill(ProcessSignal.sigint); // flutter run doesn't quit automatically
final String jsonOutput = jsonBuf.toString();
try {
completer.complete(json.decode(jsonOutput));