| Index: dart/tools/testing/dart/utils.dart
|
| diff --git a/dart/tools/testing/dart/utils.dart b/dart/tools/testing/dart/utils.dart
|
| index 888f8cfc7a8bf9139289f2863679fccb60b9d077..51109e5351d7d7c5c7f73f7867f7f3769c4d0d3e 100644
|
| --- a/dart/tools/testing/dart/utils.dart
|
| +++ b/dart/tools/testing/dart/utils.dart
|
| @@ -4,10 +4,13 @@
|
|
|
| library utils;
|
|
|
| -import 'dart:io';
|
| import 'dart:async';
|
| +import 'dart:io';
|
| +import 'dart:math' show min;
|
| import 'dart:utf' as utf;
|
|
|
| +part 'legacy_path.dart';
|
| +
|
| class DebugLogger {
|
| static IOSink _sink;
|
|
|
| @@ -17,7 +20,7 @@ class DebugLogger {
|
| static init(Path path, {append: false}) {
|
| if (path != null) {
|
| var mode = append ? FileMode.APPEND : FileMode.WRITE;
|
| - _sink = new File.fromPath(path).openWrite(mode: mode);
|
| + _sink = new File(path.toNativePath()).openWrite(mode: mode);
|
| }
|
| }
|
|
|
| @@ -151,4 +154,4 @@ class UniqueObject {
|
| operator==(other) => other is UniqueObject && _hashCode == other._hashCode;
|
|
|
| UniqueObject() : _hashCode = ++_nextId;
|
| -}
|
| +}
|
|
|