MCPcopy Create free account
hub / github.com/apache/brpc / TEST_F

Function TEST_F

test/errno_unittest.cpp:44–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42BAIDU_REGISTER_ERRNO(EMYERROR, "my error");
43
44TEST_F(ErrnoTest, system_errno) {
45 errno = EPIPE;
46 ASSERT_STREQ("Broken pipe", berror());
47 ASSERT_STREQ("Interrupted system call", berror(EINTR));
48}
49
50TEST_F(ErrnoTest, customized_errno) {
51 ASSERT_STREQ("the thread is stopping", berror(ESTOP));

Callers

nothing calls this directly

Calls 1

berrorFunction · 0.85

Tested by

no test coverage detected