[Webkit-unassigned] [Bug 22733] New: Temp file layout tests fail on Linux

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Dec 8 01:56:49 PST 2008


https://bugs.webkit.org/show_bug.cgi?id=22733

           Summary: Temp file layout tests fail on Linux
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Tools / Tests
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: deanm at chromium.org


LayoutTests/http/tests/xmlhttprequest/access-control-basic-allow-preflight-cache-invalidation-by-header.html
LayoutTests/http/tests/xmlhttprequest/access-control-basic-allow-preflight-cache-timeout.html
LayoutTests/http/tests/xmlhttprequest/access-control-basic-allow-preflight-cache.html

For example, these tests fail due to a platform difference in their use of the
builtin PHP sys_get_temp_dir.  See the comments at:

http://us.php.net/sys_get_temp_dir

"""This function does not always add trailing slash. This behaviour is
inconsistent across systems, so you have keep an eye on it."""

When running layout tests on Linux, sys_get_temp_dir does not return a trailing
slash.  We can see an example of the failure via strace:

[pid 13932] open("/tmppreflightCacheTimeout.txt",
O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = -1 EACCES (Permission denied)

The solution is just to always append a trailing slash, on some platforms this
might result in /tmp//blah, but that shouldn't be a problem.


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list