Skip to content

Commit e7a76be

Browse files
committed
Fix windows file path assertions
1 parent 7166fe0 commit e7a76be

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

pkgs/native_toolchain_c/test/native_toolchain/ndk_test.dart

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5+
import 'dart:io';
6+
57
import 'package:native_toolchain_c/src/native_toolchain/android_ndk.dart';
68
import 'package:native_toolchain_c/src/tool/tool_requirement.dart';
79
import 'package:native_toolchain_c/src/tool/tool_resolver.dart';
@@ -39,7 +41,11 @@ void main() {
3941

4042
expect(
4143
resolved.map((e) => e.uri.toFilePath()),
42-
contains(d.path('fake_android/ndk/1.3.37/')),
44+
contains(
45+
Directory(
46+
d.sandbox,
47+
).uri.resolve('fake_android/ndk/1.3.37/').toFilePath(),
48+
),
4349
);
4450
});
4551

@@ -58,7 +64,9 @@ void main() {
5864

5965
expect(
6066
resolved.map((e) => e.uri.toFilePath()),
61-
contains(d.path('weird/ndk/directory/')),
67+
contains(
68+
Directory(d.sandbox).uri.resolve('weird/ndk/directory/').toFilePath(),
69+
),
6270
);
6371
});
6472
}

0 commit comments

Comments
 (0)