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

Unified Diff: tests/standalone/io/file_system_links_test.dart

Issue 12691002: dart:io | Add Link class, as sibling to File and Directory. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Implement Link.CreateSync, use it in file_system_links_test. 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
« sdk/lib/io/link.dart ('K') | « sdk/lib/io/link.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/file_system_links_test.dart
diff --git a/tests/standalone/io/file_system_links_test.dart b/tests/standalone/io/file_system_links_test.dart
index 3179d7df0b4fc80e5fd8415d4604bb57ff06e366..520f54ac863a906891d78339e800acc8a22b4fa6 100644
--- a/tests/standalone/io/file_system_links_test.dart
+++ b/tests/standalone/io/file_system_links_test.dart
@@ -7,18 +7,7 @@ import "dart:isolate";
createLink(String dst, String link, bool symbolic, void callback()) {
nweiz 2013/03/08 20:26:41 The "symbolic" parameter no longer means anything.
Bill Hesse 2013/03/11 09:25:59 Removed. This removes a test for hard linking, bu
- var args = [ symbolic ? '-s' : '', dst, link ];
- var script = 'tests/standalone/io/ln.sh';
- if (!new File(script).existsSync()) {
- script = '../$script';
- }
- Process.run(script, args).then((result) {
- if (result.exitCode == 0) {
- callback();
- } else {
- throw new Exception('link creation failed');
- }
- });
+ new Link(link).create(dst, linkRelative: true).then((_) => callback());
}
« sdk/lib/io/link.dart ('K') | « sdk/lib/io/link.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698