[Webkit-unassigned] [Bug 187737] New: TestWTF.WTF_Expected.Unexpected is not MSVC-safe
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jul 17 13:39:50 PDT 2018
https://bugs.webkit.org/show_bug.cgi?id=187737
Bug ID: 187737
Summary: TestWTF.WTF_Expected.Unexpected is not MSVC-safe
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Tools / Tests
Assignee: webkit-unassigned at lists.webkit.org
Reporter: ross.kirsling at sony.com
CC: lforschler at apple.com
The following test is compiler-dependent:
> constexpr const char* oops = "oops";
> ...
> constexpr auto s0 = makeUnexpected(oops);
> constexpr auto s1(s0);
> EXPECT_EQ(s0, s1);
It fails on Windows with the following error...
> ..\..\Tools\TestWebKitAPI\Tests\WTF\Expected.cpp:96
> Value of: s1
> Actual: oops
> Expected: s0
> Which is: oops
...due to the fact that MSVC evidently keeps a separate string for each const char* variable when they're declared constexpr:
https://godbolt.org/g/HGC8nw
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180717/a6ffb4e1/attachment.html>
More information about the webkit-unassigned
mailing list