| 41 | }; |
| 42 | |
| 43 | TEST(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 | |
| 55 | class TestThread2 : public Thread { |
| 56 | public: |
nothing calls this directly
no test coverage detected