| 61 | class FileCacheTest : public KuduTest { |
| 62 | public: |
| 63 | FileCacheTest() |
| 64 | : rand_(SeedRandom()) { |
| 65 | // Simplify testing of the actual cache capacity. |
| 66 | FLAGS_cache_force_single_shard = true; |
| 67 | |
| 68 | // Speed up tests that check the number of descriptors. |
| 69 | FLAGS_file_cache_expiry_period_ms = 1; |
| 70 | |
| 71 | // libunwind internally uses two file descriptors as a pipe. |
| 72 | // Make sure it gets initialized early so that our fd count |
| 73 | // doesn't get affected by it. |
| 74 | ignore_result(GetStackTraceHex()); |
| 75 | initial_open_fds_ = CountOpenFds(); |
| 76 | } |
| 77 | |
| 78 | int CountOpenFds() const { |
| 79 | // Only count files in the test working directory so that we don't |
nothing calls this directly
no test coverage detected