Changeset 145412 in webkit


Ignore:
Timestamp:
Mar 11, 2013 3:15:06 PM (11 years ago)
Author:
ggaren@apple.com
Message:

Some StringHasher tests are broken because of missing null termination
https://bugs.webkit.org/show_bug.cgi?id=111284

Reviewed by Darin Adler.

  • TestWebKitAPI/Tests/WTF/StringHasher.cpp:

(TestWebKitAPI): Added null termination since C strings are null-terminated.
(TestWebKitAPI::TEST): Removed #ifdef's that disabled this testing since
the bug caught by it is now fixed.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r145400 r145412  
     12013-03-08  Geoffrey Garen  <ggaren@apple.com>
     2
     3        Some StringHasher tests are broken because of missing null termination
     4        https://bugs.webkit.org/show_bug.cgi?id=111284
     5
     6        Reviewed by Darin Adler.
     7
     8        * TestWebKitAPI/Tests/WTF/StringHasher.cpp:
     9        (TestWebKitAPI): Added null termination since C strings are null-terminated.
     10        (TestWebKitAPI::TEST): Removed #ifdef's that disabled this testing since
     11        the bug caught by it is now fixed.
     12
    1132013-03-11  Sheriff Bot  <webkit.review.bot@gmail.com>
    214
  • trunk/Tools/TestWebKitAPI/Tests/WTF/StringHasher.cpp

    r144619 r145412  
    3838static const LChar testALChars[6] = { 0x41, 0x95, 0xFF, 0x50, 0x01, 0 };
    3939static const UChar testAUChars[6] = { 0x41, 0x95, 0xFF, 0x50, 0x01, 0 };
    40 static const UChar testBUChars[5] = { 0x41, 0x95, 0xFFFF, 0x1080, 0x01 };
     40static const UChar testBUChars[6] = { 0x41, 0x95, 0xFFFF, 0x1080, 0x01, 0 };
    4141
    4242static const unsigned testAHash1 = 0xEA32B004;
     
    108108}
    109109
    110 #if OS(ANDROID)
    111 // Failing on Android. http://webkit.org/b/111284
    112 # define MAYBE_StringHasher_addCharacters DISABLED_StringHasher_addCharacters
    113 #else
    114 # define MAYBE_StringHasher_addCharacters StringHasher_addCharacters
    115 #endif
    116 
    117 TEST(WTF, MAYBE_StringHasher_addCharacters)
     110TEST(WTF, StringHasher_addCharacters)
    118111{
    119112    StringHasher hasher;
     
    274267}
    275268
    276 #if OS(ANDROID)
    277 // Failing on Android. http://webkit.org/b/111284
    278 # define MAYBE_StringHasher_addCharactersAssumingAligned DISABLED_StringHasher_addCharactersAssumingAligned
    279 #else
    280 # define MAYBE_StringHasher_addCharactersAssumingAligned StringHasher_addCharactersAssumingAligned
    281 #endif
    282 
    283 TEST(WTF, MAYBE_StringHasher_addCharactersAssumingAligned)
     269TEST(WTF, StringHasher_addCharactersAssumingAligned)
    284270{
    285271    StringHasher hasher;
Note: See TracChangeset for help on using the changeset viewer.