Skip to content

Commit 70ef9af

Browse files
committed
Attempt to fix tests on Windows
1 parent 8c04911 commit 70ef9af

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pkgs/native_toolchain_c/test/native_toolchain/ndk_test.dart

Lines changed: 4 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,7 @@ void main() {
3941

4042
expect(
4143
resolved.map((e) => e.uri.toFilePath()),
42-
contains(d.path('fake_android/ndk/1.3.37/')),
44+
contains(d.path('fake_android/ndk/1.3.37${Platform.pathSeparator}')),
4345
);
4446
});
4547

@@ -58,7 +60,7 @@ void main() {
5860

5961
expect(
6062
resolved.map((e) => e.uri.toFilePath()),
61-
contains(d.path('weird/ndk/directory/')),
63+
contains(d.path('weird/ndk/directory${Platform.pathSeparator}')),
6264
);
6365
});
6466
}

0 commit comments

Comments
 (0)