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:       }
      }
      baseDir.deleteSync(recursive: true);
    });
  }
  
  testCreateLoopingLink() {
    String base = Directory.systemTemp.createTempSync('dart_link').path;
    new Directory(join(base, 'a', 'b', 'c')).create(recursive: true)
      .then((_) =>
  
negative.code: // for details. All rights reserved. Use of this source code is governed by a
  // BSD-style license that can be found in the LICENSE file.
  
  import "package:async_helper/async_helper.dart";
  import "package:expect/expect.dart";
  import "package:path/path.dart";
  import "dart:async";
  