Bug 156071

Summary: run-webkit-tests fails to create user's cache directory when System Integrity Protection is enabled
Product: WebKit Reporter: Daniel Bates <dbates>
Component: Tools / TestsAssignee: Daniel Bates <dbates>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, bfulgham, commit-queue, glenn, lforschler, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Mac   
OS: OS X 10.11   
Bug Depends on:    
Bug Blocks: 155455    
Attachments:
Description Flags
Patch bfulgham: review+

Description Daniel Bates 2016-03-31 10:48:14 PDT
On non-Apple Internal machines with System Integrity Protection enabled, run-webkit-tests fails to create the user's cache directory with suffix DIRHELPER_USER_DIR_SUFFIX because the path returned by os.confstr(65538) [1] does not include the suffix as confstr(3) only honors DIRHELPER_USER_DIR_SUFFIX for privileged processes when System Integrity Protection is enabled on non Apple-Internal machines.

[1] <http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/port/mac.py?rev=198842#L126>
Comment 1 Radar WebKit Bug Importer 2016-03-31 10:48:48 PDT
<rdar://problem/25467827>
Comment 2 Daniel Bates 2016-03-31 15:29:02 PDT
Created attachment 275339 [details]
Patch
Comment 3 Brent Fulgham 2016-03-31 16:12:46 PDT
Comment on attachment 275339 [details]
Patch

r=me
Comment 4 Daniel Bates 2016-03-31 16:45:50 PDT
Committed r198930: <http://trac.webkit.org/changeset/198930>