| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import "package:expect/expect.dart"; |
| 5 import 'dart:io'; | 6 import 'dart:io'; |
| 6 import 'dart:isolate'; | 7 import 'dart:isolate'; |
| 7 | 8 |
| 8 void main() { | 9 void main() { |
| 9 // temp/ | 10 // temp/ |
| 10 // a/ | 11 // a/ |
| 11 // file.txt | 12 // file.txt |
| 12 // b/ | 13 // b/ |
| 13 // a_link -> a | 14 // a_link -> a |
| 14 var d = new Directory("").createTempSync(); | 15 var d = new Directory("").createTempSync(); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 41 // We should not have recursed through a_link into a. | 42 // We should not have recursed through a_link into a. |
| 42 Expect.isTrue(f.existsSync()); | 43 Expect.isTrue(f.existsSync()); |
| 43 | 44 |
| 44 // Clean up after ourselves. | 45 // Clean up after ourselves. |
| 45 d.deleteSync(recursive: true); | 46 d.deleteSync(recursive: true); |
| 46 | 47 |
| 47 // Terminate now that we are done with everything. | 48 // Terminate now that we are done with everything. |
| 48 keepAlive.close(); | 49 keepAlive.close(); |
| 49 }); | 50 }); |
| 50 } | 51 } |
| OLD | NEW |