[wp-trac] [WordPress Trac] #44605: unit tests that create tmp files should use sys_get_temp_dir() instead of hardcoding /tmp/
WordPress Trac
noreply at wordpress.org
Wed Jul 18 22:20:31 UTC 2018
#44605: unit tests that create tmp files should use sys_get_temp_dir() instead of
hardcoding /tmp/
------------------------------+------------------------------
Reporter: pbiron | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
------------------------------+------------------------------
Comment (by pbiron):
[[https://core.trac.wordpress.org/attachment/ticket/44605/44605.diff|44605.diff]]
fixes all existing tests.
There are a few other occurrences of `/tmp` in the existing tests, but to
the best of my knowledge those other uses don't actually try to create
temp files in `/tmp'.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44605#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list