Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
b865e23a
Unverified
Commit
b865e23a
authored
Dec 01, 2021
by
Danny Tuppeny
Committed by
GitHub
Dec 01, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't treat stderr output as failures during DAP test teardown (#94335)
parent
90f93a5a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
test_server.dart
...ols/test/integration.shard/debug_adapter/test_server.dart
+5
-2
No files found.
packages/flutter_tools/test/integration.shard/debug_adapter/test_server.dart
View file @
b865e23a
...
@@ -73,13 +73,16 @@ class OutOfProcessDapTestServer extends DapTestServer {
...
@@ -73,13 +73,16 @@ class OutOfProcessDapTestServer extends DapTestServer {
Logger
?
logger
,
Logger
?
logger
,
)
{
)
{
// Treat anything written to stderr as the DAP crashing and fail the test
// Treat anything written to stderr as the DAP crashing and fail the test
// unless it's "Waiting for another flutter command to release the startup lock".
// unless it's "Waiting for another flutter command to release the startup
// lock" or we're tearing down.
_process
.
stderr
_process
.
stderr
.
transform
(
utf8
.
decoder
)
.
transform
(
utf8
.
decoder
)
.
where
((
String
error
)
=>
!
error
.
contains
(
'Waiting for another flutter command to release the startup lock'
))
.
where
((
String
error
)
=>
!
error
.
contains
(
'Waiting for another flutter command to release the startup lock'
))
.
listen
((
String
error
)
{
.
listen
((
String
error
)
{
logger
?.
call
(
error
);
logger
?.
call
(
error
);
throw
error
;
if
(!
_isShuttingDown
)
{
throw
error
;
}
});
});
unawaited
(
_process
.
exitCode
.
then
((
int
code
)
{
unawaited
(
_process
.
exitCode
.
then
((
int
code
)
{
final
String
message
=
'Out-of-process DAP server terminated with code
$code
'
;
final
String
message
=
'Out-of-process DAP server terminated with code
$code
'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment