DescriptionThis bit of code was added in 2010 by commit 66ae36fec ("Restricting
lifetime of python sync server on Windows via a JobObject"). The
rationale at the time was that running a test case under a debugger
would associate all new processes with the debugger's job object.
Since 2010, Windows 8 and others have been releases, all of which
support nested jobs and do not require processes to be created with the
CREATE_BREAKAWAY_FROM_JOB. Not only that, but unconditionally setting
that flag prevents browser tests from the Windows Task Scheduler at
least on Windows 8 and later: the Task Scheduler creates a job object to
launch the test(s), and calling CreateProcess() with that flag resulted
in an access denied error (error number 5). Not setting it allows
children processes to be created and attached to new job objects in
addition to the Task Scheduler one.
TEST=interactive_ui_tests, content_browsertests from the Windows Task Scheduler (set the task to only run when the user is logged in, otherwise the processes are launched from session 0)
R=phajdan.jr@chromium.org,scottmg@chromium.org,maruel@chromium.org,mark@chromium.org
Committed: https://crrev.com/7db06605487dac6489f1248db2f1e3021477262a
Cr-Commit-Position: refs/heads/master@{#367897}
Patch Set 1 #Patch Set 2 : Patch v2 #Messages
Total messages: 10 (5 generated)
|