Changeset 12772


Ignore:
Timestamp:
Mar 19, 2014, 6:49:14 PM (11 years ago)
Author:
hock@…
Message:

modified unit test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/SystemQueue-tests.cc

    r12771 r12772  
    357357    SystemQueue& sysq = SystemQueue::instance();
    358358   
     359    EXPECT_FALSE( sysq.am_I_in_the_SysQ_thread() );
     360   
    359361    // start
    360362    sysq.run();
     
    367369    );
    368370   
    369     wait_for_checkmark(MAX_WAIT);
    370    
    371     sysq.cancel();
    372    
     371    EXPECT_FALSE( sysq.am_I_in_the_SysQ_thread() );
     372   
     373    wait_for_checkmark(MAX_WAIT);
     374   
     375    sysq.cancel();
     376   
     377    EXPECT_FALSE( sysq.am_I_in_the_SysQ_thread() );
    373378    EXPECT_TRUE( checkmark ) << "WARNING! One of the test functions was not called at all!";
    374379}
Note: See TracChangeset for help on using the changeset viewer.