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

Function TEST_F

be/src/kudu/util/thread-test.cc:47–57  ·  view source on GitHub ↗

Join with a thread and emit warnings while waiting to join. This has to be manually verified.

Source from the content-addressed store, hash-verified

45// Join with a thread and emit warnings while waiting to join.
46// This has to be manually verified.
47TEST_F(ThreadTest, TestJoinAndWarn) {
48 SKIP_IF_SLOW_NOT_ALLOWED();
49
50 scoped_refptr<Thread> holder;
51 ASSERT_OK(Thread::Create("test", "sleeper thread",
52 []() { usleep(1000*1000); }, &holder));
53 ASSERT_OK(ThreadJoiner(holder.get())
54 .warn_after_ms(10)
55 .warn_every_ms(100)
56 .Join());
57}
58
59TEST_F(ThreadTest, TestFailedJoin) {
60 SKIP_IF_SLOW_NOT_ALLOWED();

Callers

nothing calls this directly

Calls 10

CreateClass · 0.85
ThreadJoinerClass · 0.85
DefaultClass · 0.85
ignore_resultFunction · 0.85
FileExistsMethod · 0.80
getMethod · 0.65
JoinMethod · 0.45
ToStringMethod · 0.45
tidMethod · 0.45
WaitMethod · 0.45

Tested by

no test coverage detected