Fix WebKitTestRunner's testPath with Windows full paths
authorHironori.Fujii@sony.com <Hironori.Fujii@sony.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 31 Jan 2019 10:27:20 +0000 (10:27 +0000)
committerHironori.Fujii@sony.com <Hironori.Fujii@sony.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 31 Jan 2019 10:27:20 +0000 (10:27 +0000)
commitf5c5749b41cd1a4a97d812584e8af64b4386c9d4
tree41fcbb71340c688da83b4f8179379f0b8efb133d
parent5966d16df957af3f103c98176c500a6912e7faa2
Fix WebKitTestRunner's testPath with Windows full paths
https://bugs.webkit.org/show_bug.cgi?id=194012

Reviewed by Alex Christensen.

updateTestOptionsFromTestHeader failed to open test files because
testPath returned wrong file paths. It returned a path "/C:/..."
if a URL "file:///C:/..." was given.

* WebKitTestRunner/TestController.cpp:
(WTR::testPath): Removed the first '/' if the path starts with something like "/C:/".

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@240775 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Tools/ChangeLog
Tools/WebKitTestRunner/TestController.cpp