Index: pkg/smoke/test/codegen/end_to_end_test.dart |
diff --git a/pkg/smoke/test/codegen/end_to_end_test.dart b/pkg/smoke/test/codegen/end_to_end_test.dart |
index f3b95e0cb21074b0f6cfef25ddcaa050945075e3..37a627aafc6c473b1b62f9fa0dcbb33a2fb73415 100644 |
--- a/pkg/smoke/test/codegen/end_to_end_test.dart |
+++ b/pkg/smoke/test/codegen/end_to_end_test.dart |
@@ -25,8 +25,8 @@ main(args) { |
test('static_test is up to date', () { |
var scriptPath = Platform.script.path; |
- var testDir = path.dirname(path.dirname(scriptPath)); |
- var commonPath = path.join(testDir, 'common.dart'); |
+ var testDir = path.posix.dirname(path.posix.dirname(scriptPath)); |
+ var commonPath = path.posix.join(testDir, 'common.dart'); |
var testCode = new File('$commonPath').readAsStringSync(); |
var lib = initAnalyzer({'common.dart' : testCode}) |
.libraryFor('common.dart'); |
@@ -105,7 +105,7 @@ main(args) { |
recorder.runQuery(lib.getType('H'), options); |
var code = _createEntrypoint(generator); |
- var staticTestFile = new File(path.join(testDir, 'static_test.dart')); |
+ var staticTestFile = new File(path.posix.join(testDir, 'static_test.dart')); |
var existingCode = staticTestFile.readAsStringSync(); |
if (!updateStaticTest) { |
expect(code, existingCode); |