MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / TEST

Function TEST

libraries/AP_HAL_Linux/tests/test_thread.cpp:43–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41};
42
43TEST(LinuxThread, override_run)
44{
45 TestThread1 thr;
46 EXPECT_TRUE(thr.start(nullptr, 0, 0));
47
48 while (thr.n_loop == 0) {
49 usleep(10000);
50 }
51
52 EXPECT_EQ(thr.n_loop, 1);
53}
54
55class TestThread2 : public Thread {
56public:

Callers

nothing calls this directly

Calls 5

startMethod · 0.45
is_startedMethod · 0.45
stopMethod · 0.45
joinMethod · 0.45
set_rateMethod · 0.45

Tested by

no test coverage detected