mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Explain the -15 magic number. (#7571)
This commit is contained in:
parent
36464ca659
commit
2bb800a2e4
@ -182,7 +182,9 @@ class FlutterPlatform extends PlatformPlugin {
|
||||
process.kill();
|
||||
final int exitCode = await process.exitCode;
|
||||
subprocessActive = false;
|
||||
if (!controllerSinkClosed && exitCode != -15) {
|
||||
if (!controllerSinkClosed && exitCode != -15) { // ProcessSignal.SIGTERM
|
||||
// We expect SIGTERM (15) because we tried to terminate it.
|
||||
// It's negative because signals are returned as negative exit codes.
|
||||
String message = _getErrorMessage(_getExitCodeMessage(exitCode, 'after tests finished'), testPath, shellPath);
|
||||
controller.sink.addError(message);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user