flutter/packages/flutter_tools/test/general.shard/base
Christopher Fujino 3d7cd3594a
[flutter_tools] Run ShutdownHooks when handling signals (#134590)
Fixes https://github.com/flutter/flutter/issues/134566.

Prior to this fix, `ShutdownHooks` were run in the private helper
function `_exit()` defined in the `package:flutter_tools/runner.dart`
library. Independent of this, the tool had signal handling logic that
traps SIGINT and SIGTERM. However, these handlers called `exit()` from
`dart:io`, and didn't run these hooks.

This PR moves the `_exit()` private helper to
`package:flutter_tools/src/base/process.dart` and renames it to
`exitWithHooks()`, so that it can be called by the signal handlers in
`package:flutter_tools/src/base/signals.dart`.
2023-09-13 13:05:29 -07:00
..
analyze_size_test.dart Turn on avoid_dynamic_calls lint, except packages/flutter tests, make appropriate changes. (#84476) 2021-06-14 14:16:57 -07:00
async_guard_test.dart fixes to anticipate next Dart linter release (#127211) 2023-05-19 21:27:24 +00:00
bot_detector_test.dart [flutter_tools] fix null check in crash reporter (#80382) 2021-04-13 14:04:25 -07:00
build_test.dart Add flags to make App.framework work in app extension (#123618) 2023-03-28 23:10:06 +00:00
command_help_test.dart Support disabling animations in the CLI (#132239) 2023-08-23 03:35:22 +00:00
common_test.dart use throwsXxx instead of throwsA(isA<Xxx>()) (#82328) 2021-05-12 09:59:02 -07:00
context_test.dart use throwsA (#82238) 2021-05-11 10:19:01 -07:00
deferred_component_test.dart Convert some general.shard base tests to null safety (#79985) 2021-04-08 14:55:19 -07:00
error_handling_io_test.dart [flutter_tools] Fix TypeError when a FileSystemException happens during flutter doctor (#133373) 2023-09-05 18:00:07 +00:00
file_system_test.dart Add spaces after flow control statements (#126320) 2023-05-15 11:07:30 +02:00
fingerprint_test.dart Only run pod install on the first iOS build (#108205) 2022-07-26 19:39:06 +00:00
io_test.dart Enable avoid_redundant_argument_values lint (#91409) (#91462) 2021-10-08 09:25:14 -07:00
logger_test.dart Use a fake stopwatch to remove flakiness. (#133229) 2023-08-29 12:49:33 -07:00
multi_root_file_system_test.dart Add MultiRootFileSystem to better support using --filesystem-root. (#82991) 2021-05-24 22:04:02 -07:00
net_test.dart Enable avoid_redundant_argument_values lint (#91409) (#91462) 2021-10-08 09:25:14 -07:00
os_test.dart Revert "Replace rsync when unzipping artifacts on a Mac (#126703)" (#127430) 2023-05-24 19:21:05 +00:00
os_utils_test.dart Convert some general.shard base tests to null safety (#79985) 2021-04-08 14:55:19 -07:00
platform_test.dart Convert some general.shard base tests to null safety (#79985) 2021-04-08 14:55:19 -07:00
process_test.dart [flutter_tools] Instantiate shutdown hooks before localfilesystem (#110693) 2022-09-02 17:38:56 +00:00
signals_test.dart [flutter_tools] Run ShutdownHooks when handling signals (#134590) 2023-09-13 13:05:29 -07:00
task_queue_test.dart [flutter_tools] Replace Future.catchError() with Future.then(onError: ...) (#120637) 2023-02-15 19:03:00 +00:00
terminal_test.dart Update device selection to wait for wireless devices to load (#122932) 2023-03-29 17:58:07 +00:00
user_messages_test.dart Fix the message strings for xcodeMissing and xcodeIncomplete (#117922) 2023-01-04 02:48:00 +00:00