Skip to content

Commit 1a27811

Browse files
Clement Skaucommit-bot@chromium.org
Clement Skau
authored andcommitted
[Test] Fixes sdk_hash_test broken by Windows line breaks.
Change-Id: I4e87b39515e1e99197f7b03759234252b8cfa233 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/152653 Auto-Submit: Clement Skau <[email protected]> Commit-Queue: Martin Kustermann <[email protected]> Reviewed-by: Martin Kustermann <[email protected]>
1 parent edde575 commit 1a27811

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

runtime/tests/vm/dart/sdk_hash_test.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Future<void> main(List<String> args) async {
4646
final result = await Process.run(dart, [dillPath, '--child']);
4747
Expect.equals('', result.stderr);
4848
Expect.equals(0, result.exitCode);
49-
Expect.equals('Hello, SDK Hash!\n', result.stdout);
49+
Expect.equals('Hello, SDK Hash!', result.stdout.trim());
5050
}
5151

5252
// Invalidate the SDK hash in the kernel dill:
@@ -65,7 +65,7 @@ Future<void> main(List<String> args) async {
6565
{
6666
final result = await Process.run(dart, [dillPath, '--child']);
6767
Expect.equals(
68-
'Can\'t load Kernel binary: Invalid SDK hash.\n', result.stderr);
68+
'Can\'t load Kernel binary: Invalid SDK hash.', result.stderr.trim());
6969
Expect.equals(253, result.exitCode);
7070
Expect.equals('', result.stdout);
7171
}
@@ -82,7 +82,7 @@ Future<void> main(List<String> args) async {
8282
final result = await Process.run(dart, [dillPath, '--child']);
8383
Expect.equals('', result.stderr);
8484
Expect.equals(0, result.exitCode);
85-
Expect.equals('Hello, SDK Hash!\n', result.stdout);
85+
Expect.equals('Hello, SDK Hash!', result.stdout.trim());
8686
}
8787
});
8888
}

runtime/tests/vm/dart_2/sdk_hash_test.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Future<void> main(List<String> args) async {
4646
final result = await Process.run(dart, [dillPath, '--child']);
4747
Expect.equals('', result.stderr);
4848
Expect.equals(0, result.exitCode);
49-
Expect.equals('Hello, SDK Hash!\n', result.stdout);
49+
Expect.equals('Hello, SDK Hash!', result.stdout.trim());
5050
}
5151

5252
// Invalidate the SDK hash in the kernel dill:
@@ -65,7 +65,7 @@ Future<void> main(List<String> args) async {
6565
{
6666
final result = await Process.run(dart, [dillPath, '--child']);
6767
Expect.equals(
68-
'Can\'t load Kernel binary: Invalid SDK hash.\n', result.stderr);
68+
'Can\'t load Kernel binary: Invalid SDK hash.', result.stderr.trim());
6969
Expect.equals(253, result.exitCode);
7070
Expect.equals('', result.stdout);
7171
}
@@ -82,7 +82,7 @@ Future<void> main(List<String> args) async {
8282
final result = await Process.run(dart, [dillPath, '--child']);
8383
Expect.equals('', result.stderr);
8484
Expect.equals(0, result.exitCode);
85-
Expect.equals('Hello, SDK Hash!\n', result.stdout);
85+
Expect.equals('Hello, SDK Hash!', result.stdout.trim());
8686
}
8787
});
8888
}

0 commit comments

Comments
 (0)