WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
127217
Tools/Scripts/test-webkitperl fails: 'tempdir' can't be called as a method
https://bugs.webkit.org/show_bug.cgi?id=127217
Summary
Tools/Scripts/test-webkitperl fails: 'tempdir' can't be called as a method
Alberto Garcia
Reported
2014-01-18 06:44:21 PST
[...] Tools/Scripts/webkitperl/VCSUtils_unittest/parseDiffHeader.pl ................................... ok Tools/Scripts/webkitperl/VCSUtils_unittest/parseDiffWithMockFiles.pl ............................ 'tempdir' can't be called as a method at Tools/Scripts/webkitperl/VCSUtils_unittest/parseDiffWithMockFiles.pl line 120. Tools/Scripts/webkitperl/VCSUtils_unittest/parseDiffWithMockFiles.pl ............................ Dubious, test returned 255 (wstat 65280, 0xff00) No subtests run Tools/Scripts/webkitperl/VCSUtils_unittest/parseFirstEOL.pl ..................................... ok [...] That's because we're calling File::Temp->tempdir() but that's not supporte by the API.
Attachments
Patch
(1.48 KB, patch)
2014-01-18 06:46 PST
,
Alberto Garcia
dbates
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Alberto Garcia
Comment 1
2014-01-18 06:46:03 PST
Created
attachment 221544
[details]
Patch
Alberto Garcia
Comment 2
2014-01-18 06:58:25 PST
This used to work in earlier Perl versions (although it was undocumented) but not anymore:
https://github.com/Perl-Toolchain-Gang/File-Temp/commit/c8920b2161ab6900a09e02b9410e0e4c3d74f565
Daniel Bates
Comment 3
2014-01-18 11:54:38 PST
Comment on
attachment 221544
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=221544&action=review
Are there any other call sites that use the bad syntax?
> Tools/ChangeLog:8 > + Call the tempdir() function using the proper syntax.
Although you document the commit that made the old syntax invalid, you may want to consider adding a remark that explains that we were using an undocumented calling convention and that this convention has been explicitly made invalid following <
https://github.com/Perl-Toolchain-Gang/File-Temp/commit/c8920b2161ab6900a09e02b9410e0e4c3d74f565
>. It would be great if we also documented the version of Perl this change affected.
Alberto Garcia
Comment 4
2014-01-18 15:49:09 PST
(In reply to
comment #3
)
> Although you document the commit that made the old syntax invalid, > you may want to consider adding a remark that explains that we were > using an undocumented calling convention and that this convention > has been explicitly made invalid following > <
https://github.com/Perl-Toolchain-Gang/File-Temp/commit/c8920b2161ab6900a09e02b9410e0e4c3d74f565
>. It > would be great if we also documented the version of Perl this change > affected.
Sure, I'll do that. The Perl version is 5.18.0, which included File::Temp v0.23
http://perldoc.perl.org/perl5180delta.html
Alberto Garcia
Comment 5
2014-01-18 15:55:50 PST
Committed
r162283
: <
http://trac.webkit.org/changeset/162283
>
Alberto Garcia
Comment 6
2014-01-18 15:58:24 PST
(In reply to
comment #3
)
> (From update of
attachment 221544
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=221544&action=review
> > Are there any other call sites that use the bad syntax?
No, that was the only one.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug