Descriptionmac: Fix launchd test on 10.10
ServiceProcessStateFileManipulationTest.VerifyLaunchD tests that the user owned
launchd process is functioning correctly (it will stop working if
/tmp/launchd*/sock is deleted). This is no longer relevant in 10.10. There is
no user owned launchd process, and there is no file at /tmp/launchd*/sock.
Previously, the test checked that "launchctl list com.apple.launchctl.Aqua" had
exit code 0. This doesn't work on 10.10, since that particular launchctl
listing is for the user-owned instance of launchd, which no longer exists. I
changed the test to check the exit code for "launchctl limit". This fails on
10.9 if /tmp/launchd*/sock is deleted, which is the intended behavior of the
test, and it still serves as a useful sanity check on 10.10.
I also added a new test to explicitly check that GTMSMJobSubmit and
GTMSMJobRemove work correctly.
BUG=390276
Committed: https://crrev.com/51645a45bf568d614b6cd44d9cfe065fabd488c8
Cr-Commit-Position: refs/heads/master@{#296467}
Patch Set 1 : #Patch Set 2 : Comments from mark. #Patch Set 3 : Comments from mark. #
Total comments: 2
Patch Set 4 : Comments from thestig. #
Messages
Total messages: 22 (7 generated)
|