diff --git a/pkg/dartdev/test/commands/pub_test.dart b/pkg/dartdev/test/commands/pub_test.dart index e26aba9293c..9cf963b7198 100644 --- a/pkg/dartdev/test/commands/pub_test.dart +++ b/pkg/dartdev/test/commands/pub_test.dart @@ -78,13 +78,14 @@ void pub() { 'foo': {'path': '../not_to_be_found'}, }, }); + final s = Platform.pathSeparator; var result = await p.run(['pub', 'deps']); expect(result.exitCode, 66); expect(result.stdout, isEmpty); expect( result.stderr, contains( - '(could not find package foo at "../not_to_be_found"), version solving failed.', + '(could not find package foo at "..${s}not_to_be_found"), version solving failed.', ), ); });