src/sim/port.test.cc
/**
 * Test that a port that is already connected cannot take over another port.
 *
 * Before the take over the connections are: port -> port2
 */
Test that a port that is already connected cannot take over another port.
Before the take over the connections are: port -> port2
Test that a port that is already connected cannot take over another port . Before the take over the connections are : port - > port2
TEST(PortDeathTest, TakeOverConnected)
{
#ifdef NDEBUG
    GTEST_SKIP() << "Skipping as assertions are "
        "stripped out of fast builds";
#endif
    TestPort port(0), port2(2);
    port.bind(port2);
    ASSERT_DEATH(port.takeOverFrom(&port2), "");
}
TEST ( PortDeathTest , TakeOverConnected ) { #ifdef NDEBUG GTEST_SKIP ( ) << " " " " ; #endif TestPort port ( 0 ) , port2 ( 2 ) ; port . bind ( port2 ) ; ASSERT_DEATH ( port . takeOverFrom ( & port2 ) , " " ) ; }
Test that a port that is already connected cannot take over another port.
Test that a port that is already connected cannot take over another port .