src/sim/port.test.cc
/** Test that a take over must have a valid port. */
Test that a take over must have a valid port.
Test that a take over must have a valid port .
TEST(PortDeathTest, TakeOverNoPort)
{
#ifdef NDEBUG
    GTEST_SKIP() << "Skipping as assertions are "
        "stripped out of fast builds";
#endif
    TestPort port(0);
    ASSERT_DEATH(port.takeOverFrom(nullptr), "");
}
TEST ( PortDeathTest , TakeOverNoPort ) { #ifdef NDEBUG GTEST_SKIP ( ) << " " " " ; #endif TestPort port ( 0 ) ; ASSERT_DEATH ( port . takeOverFrom ( nullptr ) , " " ) ; }
Test that a take over must have a valid port.
Test that a take over must have a valid port .