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

Function TEST

test/bthread_fd_unittest.cpp:54–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52
53namespace {
54TEST(FDTest, read_kernel_version) {
55 utsname name;
56 uname(&name);
57 std::cout << "sysname=" << name.sysname << std::endl
58 << "nodename=" << name.nodename << std::endl
59 << "release=" << name.release << std::endl
60 << "version=" << name.version << std::endl
61 << "machine=" << name.machine << std::endl;
62}
63
64#define RUN_CLIENT_IN_BTHREAD 1
65//#define USE_BLOCKING_EPOLL 1

Callers

nothing calls this directly

Calls 15

make_non_blockingFunction · 0.85
bthread_start_urgentFunction · 0.85
ProfilerStartFunction · 0.85
bthread_joinFunction · 0.85
ProfilerStopFunction · 0.85
bthread_usleepFunction · 0.85
berrorFunction · 0.85
interrupt_pthreadFunction · 0.85
bthread_fd_waitFunction · 0.85
bthread_fd_timedwaitFunction · 0.85
bthread_closeFunction · 0.85
hostname2endpointFunction · 0.85

Tested by

no test coverage detected