| Index: tests/standalone/io/file_error_test.dart
|
| diff --git a/tests/standalone/io/file_error_test.dart b/tests/standalone/io/file_error_test.dart
|
| index c7b07e9222a1bc394ee12f1459d6925ce2ef748d..5f1e8ecc1b97f0b455957c1f8b97d6fd92a62a6d 100644
|
| --- a/tests/standalone/io/file_error_test.dart
|
| +++ b/tests/standalone/io/file_error_test.dart
|
| @@ -453,6 +453,26 @@ testRepeatedlyCloseFileSync() {
|
| });
|
| }
|
|
|
| +testReadSyncBigInt() {
|
| + createTestFile((file, port) {
|
| + var bigint = 100000000000000000000000000000000000000000;
|
| + var openedFile = file.openSync();
|
| + Expect.throws(() => openedFile.readSync(bigint),
|
| + (e) => e is FileIOException);
|
| + port.send(null);
|
| + });
|
| +}
|
| +
|
| +testReadSyncClosedFile() {
|
| + createTestFile((file, port) {
|
| + var openedFile = file.openSync();
|
| + openedFile.closeSync();
|
| + Expect.throws(() => openedFile.readSync(1),
|
| + (e) => e is FileIOException);
|
| + port.send(null);
|
| + });
|
| +}
|
| +
|
| main() {
|
| testOpenNonExistent();
|
| testDeleteNonExistent();
|
| @@ -469,4 +489,6 @@ main() {
|
| testOperateOnClosedFile();
|
| testRepeatedlyCloseFile();
|
| testRepeatedlyCloseFileSync();
|
| + testReadSyncBigInt();
|
| + testReadSyncClosedFile();
|
| }
|
|
|