fix sdk root path on windows (#1507)
diff --git a/pkgs/test/CHANGELOG.md b/pkgs/test/CHANGELOG.md
index d596b2d..6e607cf 100644
--- a/pkgs/test/CHANGELOG.md
+++ b/pkgs/test/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 1.17.2
+
+* Fix a windows issue with the new loading strategy.
+
## 1.17.1
* Fix an issue where you couldn't have tests compiled in both sound and
diff --git a/pkgs/test/pubspec.yaml b/pkgs/test/pubspec.yaml
index b088643..46d17a6 100644
--- a/pkgs/test/pubspec.yaml
+++ b/pkgs/test/pubspec.yaml
@@ -1,5 +1,5 @@
name: test
-version: 1.17.1
+version: 1.17.2
description: >-
A full featured library for writing and running Dart tests across platforms.
repository: https://github.com/dart-lang/test/blob/master/pkgs/test
@@ -34,7 +34,7 @@
yaml: ^3.0.0
# Use an exact version until the test_api and test_core package are stable.
test_api: 0.4.0
- test_core: 0.3.21
+ test_core: 0.3.22
dev_dependencies:
fake_async: ^1.0.0
diff --git a/pkgs/test_core/CHANGELOG.md b/pkgs/test_core/CHANGELOG.md
index 355159a..0e8265f 100644
--- a/pkgs/test_core/CHANGELOG.md
+++ b/pkgs/test_core/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 0.3.22
+
+* Fix a windows issue with the new loading strategy.
+
## 0.3.21
* Fix an issue where you couldn't have tests compiled in both sound and
diff --git a/pkgs/test_core/lib/src/runner/vm/test_compiler.dart b/pkgs/test_core/lib/src/runner/vm/test_compiler.dart
index 69ad919..8a93351 100644
--- a/pkgs/test_core/lib/src/runner/vm/test_compiler.dart
+++ b/pkgs/test_core/lib/src/runner/vm/test_compiler.dart
@@ -152,13 +152,12 @@
Future<CompileResult?> _createCompiler(Uri testUri) async {
final platformDill = 'lib/_internal/vm_platform_strong.dill';
final sdkRoot =
- Directory(p.relative(p.join(Platform.resolvedExecutable, '..', '..')))
- .uri;
+ p.relative(p.dirname(p.dirname(Platform.resolvedExecutable)));
var client = _frontendServerClient = await FrontendServerClient.start(
testUri.toString(),
_outputDill.path,
platformDill,
- sdkRoot: sdkRoot.path,
+ sdkRoot: sdkRoot,
packagesJson: (await packageConfigUri).toFilePath(),
printIncrementalDependencies: false,
);
diff --git a/pkgs/test_core/pubspec.yaml b/pkgs/test_core/pubspec.yaml
index 594f315..2c73b95 100644
--- a/pkgs/test_core/pubspec.yaml
+++ b/pkgs/test_core/pubspec.yaml
@@ -1,5 +1,5 @@
name: test_core
-version: 0.3.21
+version: 0.3.22
description: A basic library for writing tests and running them on the VM.
homepage: https://github.com/dart-lang/test/blob/master/pkgs/test_core