我正在使用谷歌測試框架來測試硬件以太網交換機。某些操作(啓用RSTP的e.x.)需要時間才能繼續。所以,我需要實現某種測試用例內Sleep()功能: TEST_F(RSTP, enableRSTP) {
snmp.set(OID, Integer32(3));
// after changing value switch is unavailable
// so I
我想測試功能: #include <cassert>
int my_func(int myParam) {
int ret = 0
if (myParam >= 10) {
assert(false);
// Logger call like `qCritical << "myParam is too big. Returning 0";`