flutter/packages/flutter_tools/test/general.shard/ios
Christopher Fujino fac41dde7f
[flutter_tools] catch SocketException writing to ios-deploy stdin (#139784)
Fixes https://github.com/flutter/flutter/issues/139709

This adds a static helper method `ProcessUtils.writelnToStdinGuarded()`, which will asynchronously write to a sub-process's STDIN `IOSink` and catch errors.

In talking with Brian, it sounds like this is the best and most reliable way to catch `SocketException`s during these writes *to sub-process file descriptors* specifically (with a "real" hard drive file, the future returned by `.flush()` should complete with the write error).

Also, as I note in the dartdoc to `writelnToStdinGuarded()`, the behavior seems to be different between macOS and linux.

Moving forward, in any place where we want to catch exceptions writing to STDIN, we will want to use this new helper.
2023-12-12 00:32:18 +00:00
..
code_signing_test.dart [flutter_tool] change print when selecting developer identity for code signing (#136978) 2023-10-30 19:03:18 +00:00
core_devices_test.dart New tooling for iOS 17 physical devices (#131865) 2023-08-09 19:25:12 +00:00
devices_test.dart New tooling for iOS 17 physical devices (#131865) 2023-08-09 19:25:12 +00:00
ios_deploy_test.dart [flutter_tools] catch SocketException writing to ios-deploy stdin (#139784) 2023-12-12 00:32:18 +00:00
ios_device_install_test.dart New tooling for iOS 17 physical devices (#131865) 2023-08-09 19:25:12 +00:00
ios_device_logger_test.dart [flutter_tools] catch SocketException writing to ios-deploy stdin (#139784) 2023-12-12 00:32:18 +00:00
ios_device_port_forwarder_test.dart [tool] Consistent FakeProcessManager.run/runSync (#103947) 2022-05-17 11:15:54 -07:00
ios_device_project_test.dart New tooling for iOS 17 physical devices (#131865) 2023-08-09 19:25:12 +00:00
ios_device_start_nonprebuilt_test.dart [Reland] Migration for the sendTiming events for package:unified_analytics (#139299) 2023-12-04 21:39:18 +00:00
ios_device_start_prebuilt_test.dart If one method of finding Dart VM fails for CoreDevice, wait for the other method (#139754) 2023-12-08 16:39:08 +00:00
ios_project_migration_test.dart Add commandHasTerminal parameter + apple usage event + sendException events for package:unified_analytics (#138806) 2023-11-22 12:25:10 +00:00
ios_workflow_test.dart Only show iOS simulators, reduce output spew in verbose (#108345) 2022-07-26 19:08:06 +00:00
mac_test.dart Unified analytics events migration for BuildEvent (#137562) 2023-11-01 19:56:50 +00:00
native_assets_test.dart [native assets] Tool exit on build failure (#137995) 2023-11-07 16:41:19 +00:00
simulators_test.dart Add --trace-to-file option to flutter run (#135713) 2023-10-12 13:23:52 -04:00
xcode_debug_test.dart Ensure Xcode project is setup to start debugger (#136977) 2023-10-25 17:08:57 +00:00
xcodeproj_test.dart Unified analytics events migration for BuildEvent (#137562) 2023-11-01 19:56:50 +00:00
xcresult_test_data.dart Reland "Print pretty error when xcodebuild fails due to missing simulator #130286" (#130506) 2023-07-13 19:36:10 +00:00
xcresult_test.dart Reland "Print pretty error when xcodebuild fails due to missing simulator #130286" (#130506) 2023-07-13 19:36:10 +00:00