src/sim/port.test.cc
/** Test that a port that is not connected cannot be taken over from. */
Test that a port that is not connected cannot be taken over from.
Test that a port that is not connected cannot be taken over from .
TEST(PortDeathTest, TakeOverDisconnected)
{
#ifdef NDEBUG
    GTEST_SKIP() << "Skipping as assertions are "
        "stripped out of fast builds";
#endif
    TestPort port(0), port2(2);
    ASSERT_DEATH(port.takeOverFrom(&port2), "");
}
TEST ( PortDeathTest , TakeOverDisconnected ) { #ifdef NDEBUG GTEST_SKIP ( ) << " " " " ; #endif TestPort port ( 0 ) , port2 ( 2 ) ; ASSERT_DEATH ( port . takeOverFrom ( & port2 ) , " " ) ; }
Test that a port that is not connected cannot be taken over from.
Test that a port that is not connected cannot be taken over from .