diff --git a/tests/standalone/io/resolve_symbolic_links_test.dart b/tests/standalone/io/resolve_symbolic_links_test.dart index cab5684ab22..07e49d0da86 100644 --- a/tests/standalone/io/resolve_symbolic_links_test.dart +++ b/tests/standalone/io/resolve_symbolic_links_test.dart @@ -96,6 +96,7 @@ main() { }); })); + asyncTest(testNonExistantPath); asyncTest(testLinkTargetTypeChangedAfterCreation); } @@ -157,6 +158,13 @@ Future testLink(String name) { }); } +Future testNonExistantPath() async { + try { + await File('/tmp/foo/doesnotexist').resolveSymbolicLinks(); + Expect.fail("expected FileSystemException"); + } on FileSystemException {} +} + Future testLinkTargetTypeChangedAfterCreation() async { // Test the following scenario: // 1. create a file