Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Issue 588833002: mac: Fix launchd test on 10.10 (Closed)

Created:
6 years, 3 months ago by erikchen
Modified:
6 years, 3 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

mac: 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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -2 lines) Patch
A chrome/browser/service_process/service_process_control_mac_unittest.mm View 1 2 1 chunk +66 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/service_process_util_unittest.cc View 1 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (7 generated)
erikchen
mark: Please review.
6 years, 3 months ago (2014-09-20 00:43:00 UTC) #3
Mark Mentovai
I think that this is testing launchctl because some other code (probably still GTMSMJobSubmit()) uses ...
6 years, 3 months ago (2014-09-20 02:43:53 UTC) #4
erikchen
mark: PTAL. Your comment has several references to launchctl where I think you meant launchd. ...
6 years, 3 months ago (2014-09-23 02:55:57 UTC) #5
Mark Mentovai
No, I meant launchctl. Take a look at the implementation of GTMSMJobSubmit(), third_party/google_toolbox_for_mac/src/Foundation/GTMServiceManagement.c.
6 years, 3 months ago (2014-09-23 03:20:47 UTC) #6
Mark Mentovai
LGTM. I’d prefer a test that verifies that GTMSMJobSubmit() and GTMSMJobRemove() actually work since those ...
6 years, 3 months ago (2014-09-23 03:24:20 UTC) #7
erikchen
On 2014/09/23 03:24:20, Mark Mentovai wrote: > LGTM. > > I’d prefer a test that ...
6 years, 3 months ago (2014-09-23 19:15:54 UTC) #9
Mark Mentovai
LGTM
6 years, 3 months ago (2014-09-23 19:34:31 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/588833002/80001
6 years, 3 months ago (2014-09-23 20:31:19 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/12916)
6 years, 3 months ago (2014-09-23 20:53:57 UTC) #14
erikchen
thestig: Looking for an OWNER review.
6 years, 3 months ago (2014-09-23 20:56:20 UTC) #16
Lei Zhang
lgtm stamp with a nit. https://codereview.chromium.org/588833002/diff/80001/chrome/chrome_tests_unit.gypi File chrome/chrome_tests_unit.gypi (right): https://codereview.chromium.org/588833002/diff/80001/chrome/chrome_tests_unit.gypi#newcode2393 chrome/chrome_tests_unit.gypi:2393: 'browser/service_process/service_process_control_mac_unittest.mm', You can put ...
6 years, 3 months ago (2014-09-23 21:59:07 UTC) #17
erikchen
https://codereview.chromium.org/588833002/diff/80001/chrome/chrome_tests_unit.gypi File chrome/chrome_tests_unit.gypi (right): https://codereview.chromium.org/588833002/diff/80001/chrome/chrome_tests_unit.gypi#newcode2393 chrome/chrome_tests_unit.gypi:2393: 'browser/service_process/service_process_control_mac_unittest.mm', On 2014/09/23 21:59:06, Lei Zhang wrote: > You ...
6 years, 3 months ago (2014-09-24 17:19:03 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/588833002/100001
6 years, 3 months ago (2014-09-24 17:20:11 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:100001) as 9994853be8007506b741221cc7b890165545a4db
6 years, 3 months ago (2014-09-24 18:19:14 UTC) #21
commit-bot: I haz the power
6 years, 3 months ago (2014-09-24 18:20:08 UTC) #22
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/51645a45bf568d614b6cd44d9cfe065fabd488c8
Cr-Commit-Position: refs/heads/master@{#296467}

Powered by Google App Engine
This is Rietveld 408576698