Changeset 12755


Ignore:
Timestamp:
Mar 7, 2014, 7:46:29 PM (11 years ago)
Author:
hock@…
Message:

TEST_F(SystemQueueTimingTest, NotEmptyWhileWaiting)

which also fails..

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/SystemQueue-tests.cc

    r12754 r12755  
    326326
    327327/**
     328 *  tests whether the SystemQueue is considered non-empty, while an event is delayed-waiting
     329 */
     330TEST_F(SystemQueueTimingTest, NotEmptyWhileWaiting)
     331{
     332    // scheduleCall
     333    sysq.scheduleCall(
     334        boost::bind(&SystemQueueTimingTest::Check, this), DELAY_TIME
     335    );
     336
     337    // SystemQueue must not be empty as long as the event is not finished (and especially while stille queued)
     338    if ( sysq.isEmpty() )
     339    {
     340        // assert that this test is actually meaningful
     341        ASSERT_FALSE( checkmark )
     342            << "NOTE: This is not necessarily a bug, maybe the timing just have to adjusted. Try to increase MAX_WAIT.";
     343
     344        EXPECT_TRUE( ! sysq.isEmpty() || checkmark );
     345    }
     346}
     347
     348
     349
     350/**
    328351 *  schedules a delayed call and tests whether it is called (more or less timely..)
    329352 */
Note: See TracChangeset for help on using the changeset viewer.