⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 181880 in webkit


Ignore:
Timestamp:
Mar 23, 2015, 3:56:58 PM (11 years ago)
Author:
Brent Fulgham
Message:

Regression(r181257): WTF_WorkQueue.Simple is flaky
https://bugs.webkit.org/show_bug.cgi?id=142560

Remove the check that the refCount has returned to one after the
individual tasks have completed. It's too nondeterministic when
the reference count will be reduced.

Reviewed by Alexey Proskuryakov

  • TestWebKitAPI/Tests/WTF/WorkQueue.cpp:

(TestWebKitAPI::TEST): Remove test that refCount is back to 1.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r181853 r181880  
     12015-03-23  Brent Fulgham  <bfulgham@apple.com>
     2
     3        Regression(r181257): WTF_WorkQueue.Simple is flaky
     4        https://bugs.webkit.org/show_bug.cgi?id=142560
     5
     6        Remove the check that the refCount has returned to one after the
     7        individual tasks have completed. It's too nondeterministic when
     8        the reference count will be reduced.
     9
     10        Reviewed by Alexey Proskuryakov
     11
     12        * TestWebKitAPI/Tests/WTF/WorkQueue.cpp:
     13        (TestWebKitAPI::TEST): Remove test that refCount is back to 1.
     14
    1152015-03-23  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
    216
  • trunk/Tools/TestWebKitAPI/Tests/WTF/WorkQueue.cpp

    r181362 r181880  
    8888    EXPECT_TRUE(calledLongTest);
    8989    EXPECT_TRUE(calledThirdTest);
    90     EXPECT_EQ(1, queue->refCount());
    9190
    9291    EXPECT_EQ(static_cast<size_t>(3), m_functionCallOrder.size());
     
    109108    auto queue2 = WorkQueue::create("com.apple.WebKit.Test.twoQueues2");
    110109
    111     int initialQueue1RefCount = queue1->refCount();
    112     int initialQueue2RefCount = queue2->refCount();
    113     EXPECT_EQ(1, initialQueue1RefCount);
    114     EXPECT_EQ(1, initialQueue2RefCount);
     110    EXPECT_EQ(1, queue1->refCount());
     111    EXPECT_EQ(1, queue2->refCount());
    115112
    116113    MutexLocker locker(m_lock);
     
    147144    EXPECT_FALSE(calledLongTest);
    148145    EXPECT_TRUE(calledThirdTest);
    149     EXPECT_EQ(1, queue1->refCount());
    150146
    151147    m_testQueue2Completed.wait(m_lock);
     
    154150    EXPECT_TRUE(calledLongTest);
    155151    EXPECT_TRUE(calledThirdTest);
    156     EXPECT_EQ(1, queue2->refCount());
    157152
    158153    EXPECT_EQ(static_cast<size_t>(3), m_functionCallOrder.size());
Note: See TracChangeset for help on using the changeset viewer.