Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Unified Diff: utils/tests/pub/io_test.dart

Issue 13293006: Work around issue 4928. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « utils/pub/io.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/pub/io_test.dart
diff --git a/utils/tests/pub/io_test.dart b/utils/tests/pub/io_test.dart
index a1825af54803782e7f9b703ff35ae68bfcc14087..783ca4aaf3744fbaca09b32847807353a6fc1aa1 100644
--- a/utils/tests/pub/io_test.dart
+++ b/utils/tests/pub/io_test.dart
@@ -119,6 +119,20 @@ main() {
]));
}), completes);
});
+
+ test('treats a broken symlink as a file', () {
+ expect(withTempDir((temp) {
+ writeTextFile(path.join(temp, 'file1.txt'), '');
+ createDir(path.join(temp, 'dir'));
+ createSymlink(path.join(temp, 'dir'), path.join(temp, 'linkdir'));
+ deleteEntry(path.join(temp, 'dir'));
+
+ expect(listDir(temp, recursive: true), unorderedEquals([
+ path.join(temp, 'file1.txt'),
+ path.join(temp, 'linkdir')
+ ]));
+ }), completes);
+ });
});
testExistencePredicate("entryExists", entryExists,
« no previous file with comments | « utils/pub/io.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698