| 13 | namespace bess { |
| 14 | |
| 15 | TEST(PhyMemTest, Phy2Virt) { |
| 16 | if (geteuid() == 0) { |
| 17 | int x = 0; // &x is a valid address |
| 18 | EXPECT_NE(Virt2PhyGeneric(&x), 0); |
| 19 | } |
| 20 | } |
| 21 | |
| 22 | TEST(HugepageTest, NullFree) { |
| 23 | FreeHugepage(nullptr); |
nothing calls this directly
no test coverage detected