Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewkolos committed Jun 26, 2024
1 parent e726eb4 commit 76fd84b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/flutter_tools/lib/src/base/error_handling_io.dart
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@ class ErrorHandlingFileSystem extends ForwardingFileSystem {
}
}

@override
Directory get systemTempDirectory {
return directory(delegate.systemTempDirectory);
}

@override
File file(dynamic path) => ErrorHandlingFile(
platform: _platform,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -866,6 +866,17 @@ void main() {
});
});

testWithoutContext('ErrorHandlingFileSystem.systemTempDirectory wraps systemTempDirectory of delegate', () {
final MemoryFileSystem delegate = MemoryFileSystem.test();
final FileSystem fs = ErrorHandlingFileSystem(
delegate: delegate,
platform: const LocalPlatform(),
);

expect(fs.systemTempDirectory, isA<ErrorHandlingDirectory>());
expect(fs.systemTempDirectory.path, delegate.systemTempDirectory.path);
});

group('ProcessManager on windows throws tool exit', () {
const int kDeviceFull = 112;
const int kUserMappedSectionOpened = 1224;
Expand Down

0 comments on commit 76fd84b

Please sign in to comment.