|
|
| 97 |
|
97 |
|
| 98 |
ret = simclick_sim_command (click->m_simNode, SIMCLICK_IFID_FROM_NAME, "eth1"); |
98 |
ret = simclick_sim_command (click->m_simNode, SIMCLICK_IFID_FROM_NAME, "eth1"); |
| 99 |
NS_TEST_EXPECT_MSG_EQ (ret, -1, "No eth1 on node"); |
99 |
NS_TEST_EXPECT_MSG_EQ (ret, -1, "No eth1 on node"); |
|
|
100 |
|
| 101 |
// Cast ret to void to work around set-but-unused warnings from compilers |
| 102 |
(void) ret; |
| 100 |
} |
103 |
} |
| 101 |
|
104 |
|
| 102 |
class ClickIpMacAddressFromNameTest : public TestCase |
105 |
class ClickIpMacAddressFromNameTest : public TestCase |
|
|
| 149 |
NS_TEST_EXPECT_MSG_EQ (strcmp (buf, "00:00:00:00:00:00"), 0, "tun0 has IP 127.0.0.1"); |
152 |
NS_TEST_EXPECT_MSG_EQ (strcmp (buf, "00:00:00:00:00:00"), 0, "tun0 has IP 127.0.0.1"); |
| 150 |
|
153 |
|
| 151 |
delete [] buf; |
154 |
delete [] buf; |
|
|
155 |
|
| 156 |
// Cast ret to void to work around set-but-unused warnings from compilers |
| 157 |
(void) ret; |
| 152 |
} |
158 |
} |
| 153 |
|
159 |
|
| 154 |
class ClickTrivialTest : public TestCase |
160 |
class ClickTrivialTest : public TestCase |
|
|
| 191 |
NS_TEST_EXPECT_MSG_EQ (ret, 0, "eth1 does not exist, so return 0"); |
197 |
NS_TEST_EXPECT_MSG_EQ (ret, 0, "eth1 does not exist, so return 0"); |
| 192 |
|
198 |
|
| 193 |
delete [] buf; |
199 |
delete [] buf; |
|
|
200 |
|
| 201 |
// Cast ret to void to work around set-but-unused warnings from compilers |
| 202 |
(void) ret; |
| 194 |
} |
203 |
} |
| 195 |
|
204 |
|
| 196 |
class ClickIfidFromNameTestSuite : public TestSuite |
205 |
class ClickIfidFromNameTestSuite : public TestSuite |