Unverified Commit b362d6f4 authored by Jia Hao's avatar Jia Hao Committed by GitHub

[flutter_tools] Fix ignoring of Flutter tester exitCode (#74293)

parent 913d5933
...@@ -459,9 +459,9 @@ class FlutterPlatform extends PlatformPlugin { ...@@ -459,9 +459,9 @@ class FlutterPlatform extends PlatformPlugin {
process.kill(io.ProcessSignal.sigkill); process.kill(io.ProcessSignal.sigkill);
final int exitCode = await process.exitCode; final int exitCode = await process.exitCode;
subprocessActive = false; subprocessActive = false;
if (!controllerSinkClosed && exitCode != -15) { if (!controllerSinkClosed && exitCode != -9) {
// ProcessSignal.SIGTERM // ProcessSignal.SIGKILL
// We expect SIGTERM (15) because we tried to terminate it. // We expect SIGKILL (9) because we tried to terminate it.
// It's negative because signals are returned as negative exit codes. // It's negative because signals are returned as negative exit codes.
final String message = _getErrorMessage( final String message = _getErrorMessage(
_getExitCodeMessage(exitCode, 'after tests finished'), _getExitCodeMessage(exitCode, 'after tests finished'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment