You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've added a call spawning a new process near the end of test.dart. However, it doesn't execute. The same code placed in a stand-alone dart file executes correctly. (Unfortunately I haven't been able to produce a smaller test case)
I am working on forcing all browsers to close at the end of test.dart. I have attached the patch for this code that causes the bug, or you can look at the CL here: https://chromiumcodereview.appspot.com/9369051/ (relevant code in killZombieBrowsers function in test_suite.dart).
Although the print statement is executed right above the new Process call (line 602 test_suite.dart, it would seem that the command is not executed, nor is any error message printed. I've tested this in Windows and Mac, and they both fail this way.
progress.allDone(), called from ProcessQueue._checkDone(), actively kills the test.dart script, by calling exit().
So if you register anything else to take place, asynchronously, then you have to
move the progress.allDone() to a handler that executes after your new tasks have completed, as with the delete.exitHandler a few lines below.
This is a minor change with just bug fixes:
* Handle trailing commas in for-loop updaters (#1354).
* Format `||` patterns like fallthrough cases in switch expressions (#1602).
* Handle comments and metadata before variables more gracefully (#1604).
* Ensure comment formatting is idempotent (#1606).
* Better indentation of leading comments on property accesses in binary operator
operands (#1611).
* Don't crash on doc comments in local variable declarations (#1621).
This won't affect much code, but it does change the formatting in some cases.
Change-Id: I2d52fee92aecbc24315e4f1a89360af85ec85942
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/401482
Auto-Submit: Bob Nystrom <[email protected]>
Commit-Queue: Alexander Thomas <[email protected]>
Reviewed-by: Alexander Thomas <[email protected]>
I've added a call spawning a new process near the end of test.dart. However, it doesn't execute. The same code placed in a stand-alone dart file executes correctly. (Unfortunately I haven't been able to produce a smaller test case)
I am working on forcing all browsers to close at the end of test.dart. I have attached the patch for this code that causes the bug, or you can look at the CL here: https://chromiumcodereview.appspot.com/9369051/ (relevant code in killZombieBrowsers function in test_suite.dart).
Although the print statement is executed right above the new Process call (line 602 test_suite.dart, it would seem that the command is not executed, nor is any error message printed. I've tested this in Windows and Mac, and they both fail this way.
Attachment:
ProcessPatch.diff (6.21 KB)
The text was updated successfully, but these errors were encountered: