mirror of
https://github.com/dart-lang/sdk
synced 2024-09-04 16:03:44 +00:00
Use platform based path separator in test
Change-Id: I750b236a39bc9338c84a2a6bf1fcfcde1de1aac4 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/291070 Reviewed-by: Jonas Jensen <jonasfj@google.com> Commit-Queue: Sigurd Meldgaard <sigurdm@google.com>
This commit is contained in:
parent
5d98b0eb9f
commit
cc9526fea8
|
@ -78,13 +78,14 @@ void pub() {
|
||||||
'foo': {'path': '../not_to_be_found'},
|
'foo': {'path': '../not_to_be_found'},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
final s = Platform.pathSeparator;
|
||||||
var result = await p.run(['pub', 'deps']);
|
var result = await p.run(['pub', 'deps']);
|
||||||
expect(result.exitCode, 66);
|
expect(result.exitCode, 66);
|
||||||
expect(result.stdout, isEmpty);
|
expect(result.stdout, isEmpty);
|
||||||
expect(
|
expect(
|
||||||
result.stderr,
|
result.stderr,
|
||||||
contains(
|
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.',
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue