Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Unified Diff: pkg/analyzer/lib/src/dart/sdk/sdk.dart

Issue 2398113002: Fix more tests on windows bots (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer/lib/src/dart/sdk/sdk.dart
diff --git a/pkg/analyzer/lib/src/dart/sdk/sdk.dart b/pkg/analyzer/lib/src/dart/sdk/sdk.dart
index dbf811c7c01b1df326812e8ab4b61baa542adab7..2a71fce3fc57a0416430881ce7fb22fe331b27f0 100644
--- a/pkg/analyzer/lib/src/dart/sdk/sdk.dart
+++ b/pkg/analyzer/lib/src/dart/sdk/sdk.dart
@@ -681,10 +681,11 @@ class FolderBasedDartSdk extends AbstractDartSdk {
}
pathos.Context pathContext = resourceProvider.pathContext;
if (pathContext.style != pathos.context.style) {
- // This will only be true if pathContext == posix and
- // pathos.context == windows, which only happens when running tests.
+ // This will only happen when running tests.
if (exec.startsWith(new RegExp('[a-zA-Z]:'))) {
exec = exec.substring(2);
+ } else if (resourceProvider is MemoryResourceProvider) {
+ exec = resourceProvider.convertPath(exec);
}
exec = pathContext.fromUri(pathos.context.toUri(exec));
}
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/package_test.dart » ('j') | pkg/analyzer/test/source/sdk_ext_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698