anchor.diff:          new Directory(join(base, 'a', 'b', 'c'))
           .list(recursive: true, followLinks: true)
           .last)
  -    .then((_) =>
  -        new Directory(base).delete(recursive: true));
  +    .whenComplete(() {
  +      new Directory(base).deleteSync(recursive: true);
  +      asyncEnd();
  +    });
   }
   
   testRenameSync() {
  
positive.code:   String link = join(base, 'link');
    String target = join(base, 'target');
    new Directory(target).createSync();
    print("link: $link");
    print("target: $target");
    new Link(link).createSync(target);
    return;
    Expect.equals(FileSystemEntityType.DIRECTORY,
                  FileSystemEntity.typeSync(link));
    Expect.equals(FileSystemEntityType.DIRECTORY,
  
negative.code: // Test the dart:io Link class.
  
  testCreateSync() {
    asyncStart();
    String base = Directory.systemTemp.createTempSync('dart_link').path;
    if (isRelative(base)) {
      Expect.fail(
  