WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
148073
Fix conversion-null warning in conversion.cpp of TestWebKitAPI
https://bugs.webkit.org/show_bug.cgi?id=148073
Summary
Fix conversion-null warning in conversion.cpp of TestWebKitAPI
Gyuyoung Kim
Reported
2015-08-16 19:22:42 PDT
When building EFL port, there is conversion-null build warning. [5131/5306] Building CXX object Tools/TestWebKitAPI/CMakeFiles/TestWTF.dir/Tests/WTF/Condition.cpp.o ../../Tools/TestWebKitAPI/Tests/WTF/Condition.cpp: In member function ‘virtual void TestWebKitAPI::WTF_Condition_TimeoutTimesOut_Test::TestBody()’: ../../Tools/TestWebKitAPI/Tests/WTF/Condition.cpp:253:158: warning: converting ‘false’ to pointer type for argument 1 of ‘char testing::internal::IsNullLiteralHelper(testing::internal::Secret*)’ [-Wconversion-null] EXPECT_EQ(false, result); ^ [5306/5306] Linking CXX executable bin/TestWebKitAPI/WebKit2/WillSendSubmitEvent
Attachments
Patch
(1.20 KB, patch)
2015-08-16 19:23 PDT
,
Gyuyoung Kim
no flags
Details
Formatted Diff
Diff
Patch
(1.22 KB, patch)
2015-08-18 00:50 PDT
,
Gyuyoung Kim
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Gyuyoung Kim
Comment 1
2015-08-16 19:23:54 PDT
Created
attachment 259134
[details]
Patch
Alexey Proskuryakov
Comment 2
2015-08-17 18:06:57 PDT
Comment on
attachment 259134
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=259134&action=review
> Tools/TestWebKitAPI/Tests/WTF/Condition.cpp:253 > - EXPECT_EQ(false, result); > + EXPECT_EQ(result, false);
According to documentation, the order is correct: EXPECT_EQ(expected, actual). This needs a different fix.
Gyuyoung Kim
Comment 3
2015-08-18 00:50:55 PDT
Created
attachment 259258
[details]
Patch
Gyuyoung Kim
Comment 4
2015-08-18 00:51:56 PDT
(In reply to
comment #2
)
> Comment on
attachment 259134
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=259134&action=review
> > > Tools/TestWebKitAPI/Tests/WTF/Condition.cpp:253 > > - EXPECT_EQ(false, result); > > + EXPECT_EQ(result, false); > > According to documentation, the order is correct: EXPECT_EQ(expected, > actual). This needs a different fix.
Yes, we should use EXPECT_FALSE|TRUE when checking boolean instead of EXPECT_EQ.
WebKit Commit Bot
Comment 5
2015-08-18 18:25:39 PDT
Comment on
attachment 259258
[details]
Patch Clearing flags on attachment: 259258 Committed
r188618
: <
http://trac.webkit.org/changeset/188618
>
WebKit Commit Bot
Comment 6
2015-08-18 18:25:42 PDT
All reviewed patches have been landed. Closing bug.
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