我正在使用谷歌测试框架来测试硬件以太网交换机。某些操作(启用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";`