From cc9526fea82aa421d1e7ceaff625c75c8b532f16 Mon Sep 17 00:00:00 2001 From: Sigurd Meldgaard Date: Mon, 27 Mar 2023 09:39:19 +0000 Subject: [PATCH] Use platform based path separator in test Change-Id: I750b236a39bc9338c84a2a6bf1fcfcde1de1aac4 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/291070 Reviewed-by: Jonas Jensen Commit-Queue: Sigurd Meldgaard --- pkg/dartdev/test/commands/pub_test.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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.', ), ); });