| 354 | INSTANTIATE_TEST_SUITE_P(, RandomAccessFileCacheTest, ::testing::Values(false, true)); |
| 355 | |
| 356 | TEST_P(RandomAccessFileCacheTest, TestMemoryFootprintDoesNotCrash) { |
| 357 | SetEncryptionFlags(GetParam()); |
| 358 | const string kFile = this->GetTestPath("foo"); |
| 359 | ASSERT_OK(this->WriteTestFile(kFile, "test data")); |
| 360 | |
| 361 | shared_ptr<RandomAccessFile> f; |
| 362 | ASSERT_OK(cache_->OpenFile<Env::MUST_EXIST>(kFile, &f)); |
| 363 | |
| 364 | // This used to crash due to a kudu_malloc_usable_size() call on a memory |
| 365 | // address that wasn't the start of an actual heap allocation. |
| 366 | LOG(INFO) << f->memory_footprint(); |
| 367 | } |
| 368 | |
| 369 | class RWFileCacheTest : |
| 370 | public FileCacheTest<RWFile>, |
nothing calls this directly
no test coverage detected