From e0751fb8aae706ee8f426c3bc8203d41371a839b Mon Sep 17 00:00:00 2001 From: Alexander Aprelev Date: Thu, 9 Nov 2023 22:54:03 +0000 Subject: [PATCH] [gardening] Use Platform.lineTerminator in remove_error_listener_test expectations. Follow-up to https://dart.googlesource.com/sdk/+/088b178d9d464a3e89e6467dff37d80d4170e7fd Fixes https://github.com/dart-lang/sdk/issues/54007 TEST=ci Change-Id: I507de90fb46641af06890d052af0f8db29363473 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/335326 Auto-Submit: Alexander Aprelev Reviewed-by: Ryan Macnak Commit-Queue: Ryan Macnak Commit-Queue: Alexander Aprelev --- tests/lib/isolate/remove_error_listener_test.dart | 4 ++-- tests/lib_2/isolate/remove_error_listener_test.dart | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/lib/isolate/remove_error_listener_test.dart b/tests/lib/isolate/remove_error_listener_test.dart index 3d16fa6318e..f2599d8b705 100644 --- a/tests/lib/isolate/remove_error_listener_test.dart +++ b/tests/lib/isolate/remove_error_listener_test.dart @@ -16,8 +16,8 @@ void main(List args) { Platform.script.toFilePath(), 'child' ]); - Expect.isTrue( - result.stderr.contains("Unhandled exception:\nException: Oops!")); + Expect.isTrue(result.stderr.contains( + "Unhandled exception:${Platform.lineTerminator}Exception: Oops!")); return; } { diff --git a/tests/lib_2/isolate/remove_error_listener_test.dart b/tests/lib_2/isolate/remove_error_listener_test.dart index ceba7ae6d64..c6102522532 100644 --- a/tests/lib_2/isolate/remove_error_listener_test.dart +++ b/tests/lib_2/isolate/remove_error_listener_test.dart @@ -18,8 +18,8 @@ void main(List args) { Platform.script.toFilePath(), 'child' ]); - Expect.isTrue( - result.stderr.contains("Unhandled exception:\nException: Oops!")); + Expect.isTrue(result.stderr.contains( + "Unhandled exception:${Platform.lineTerminator}Exception: Oops!")); return; } {