Ignore:
Timestamp:
Mar 23, 2015, 3:56:58 PM (10 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.