WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
63954
run-api-tests output is very confusing on Windows
https://bugs.webkit.org/show_bug.cgi?id=63954
Summary
run-api-tests output is very confusing on Windows
Adam Roben (:aroben)
Reported
2011-07-05 14:24:33 PDT
run-api-tests output is very confusing on Windows
Attachments
Patch
(8.71 KB, patch)
2011-07-05 14:25 PDT
,
Adam Roben (:aroben)
dbates
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Adam Roben (:aroben)
Comment 1
2011-07-05 14:25:38 PDT
Created
attachment 99747
[details]
Patch
Daniel Bates
Comment 2
2011-07-05 14:39:28 PDT
Comment on
attachment 99747
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=99747&action=review
> Tools/Scripts/run-api-tests:308 > + my $suffix; > + if (configurationForVisualStudio() ne "Debug_All") { > + $suffix = ""; > + } else { > + $suffix = "_debug"; > + }
Nit: It's usually easier to think about equal than not-equal, so I would have written this as: my $suffix; if (configurationForVisualStudio() eq "Debug_All") { $suffix = "_debug"; } else { $suffix = ""; } Alternatively, you could have written this as: my $suffix = ""; $suffix = "_debug" if configurationForVisualStudio() eq "Debug_All";
> Tools/Scripts/run-api-tests:309 > + return $path . $suffix . ".exe";
You can use string interpolation and write this as "$path$suffix.exe".
Adam Roben (:aroben)
Comment 3
2011-07-05 15:18:55 PDT
Comment on
attachment 99747
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=99747&action=review
>> Tools/Scripts/run-api-tests:308 >> + } > > Nit: It's usually easier to think about equal than not-equal, so I would have written this as: > > my $suffix; > if (configurationForVisualStudio() eq "Debug_All") { > $suffix = "_debug"; > } else { > $suffix = ""; > } > > Alternatively, you could have written this as: > my $suffix = ""; > $suffix = "_debug" if configurationForVisualStudio() eq "Debug_All";
I changed this to match your first version.
>> Tools/Scripts/run-api-tests:309 >> + return $path . $suffix . ".exe"; > > You can use string interpolation and write this as "$path$suffix.exe".
Done.
Adam Roben (:aroben)
Comment 4
2011-07-05 15:21:19 PDT
Committed
r90408
: <
http://trac.webkit.org/changeset/90408
>
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