mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Turn support for sync-async on in Flutter. (#16543)
* Turn support for sync-async on in Flutter. With this feature execution of async functions starts immediately instead of it being delayed by one microtask tick. * Address review comments. * Adjust some stack trace expectations which are slightly different with --sync-async turned on.
This commit is contained in:
parent
6c049ec286
commit
b0b2c0077a
@ -43,7 +43,7 @@ Who lives, who dies, who tells your story\?
|
||||
|
||||
When the exception was thrown, this was the stack:
|
||||
#[0-9]+ +main.<anonymous closure> \(.+[/\\]dev[/\\]automated_tests[/\\]flutter_test[/\\]exception_handling_test\.dart:16:9\)
|
||||
#[0-9]+ +main.<anonymous closure> \(.+[/\\]dev[/\\]automated_tests[/\\]flutter_test[/\\]exception_handling_test\.dart:15:77\)
|
||||
<<skip until matching line>>
|
||||
#[0-9]+ +.+ \(package:flutter_test[/\\]src[/\\]widget_tester\.dart:[0-9]+:[0-9]+\)
|
||||
<<skip until matching line>>
|
||||
^\(elided [0-9]+ .+\)$
|
||||
|
@ -18,6 +18,10 @@ When the exception was thrown, this was the stack:
|
||||
The test description was:
|
||||
TestAsyncUtils - custom guarded sections
|
||||
════════════════════════════════════════════════════════════════════════════════════════════════════
|
||||
══╡ EXCEPTION CAUGHT BY FLUTTER TEST FRAMEWORK ╞════════════════════════════════════════════════════
|
||||
The following message was thrown:
|
||||
Multiple exceptions \(2\) were detected during the running of the current test, and at least one was unexpected.
|
||||
════════════════════════════════════════════════════════════════════════════════════════════════════
|
||||
.*(this line has more of the test framework's output)?
|
||||
Test failed\. See exception logs above\.
|
||||
The test description was: TestAsyncUtils - custom guarded sections
|
||||
|
@ -90,6 +90,7 @@ Future<CompilerOutput> compile(
|
||||
'--sdk-root',
|
||||
sdkRoot,
|
||||
'--strong',
|
||||
'--sync-async',
|
||||
'--target=flutter',
|
||||
];
|
||||
if (trackWidgetCreation)
|
||||
@ -215,6 +216,7 @@ class ResidentCompiler {
|
||||
_sdkRoot,
|
||||
'--incremental',
|
||||
'--strong',
|
||||
'--sync-async',
|
||||
'--target=flutter',
|
||||
];
|
||||
if (outputPath != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user