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

Function TestConnectInterrupt

test/bthread_fd_unittest.cpp:639–644  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

637}
638
639void TestConnectInterrupt(bool timed) {
640 bthread_t tid;
641 ASSERT_EQ(0, bthread_start_background(&tid, NULL, ConnectThread, &timed));
642 ASSERT_EQ(0, bthread_stop(tid));
643 ASSERT_EQ(0, bthread_join(tid, NULL));
644}
645
646TEST(FDTest, interrupt) {
647 TestConnectInterrupt(false);

Callers 1

TESTFunction · 0.70

Calls 3

bthread_start_backgroundFunction · 0.85
bthread_stopFunction · 0.85
bthread_joinFunction · 0.85

Tested by

no test coverage detected