Mocks and test helpers.
More...
◆ CurrentProcessOpenFiles()
std::vector< std::string > utest::CurrentProcessOpenFiles |
( |
| ) |
|
returns files opened by current process
jemalloc opens /proc/sys/vm/overcommit_memory, other libraries may also open some files randomly. To avoid problems in tests and make them reliable check files for specific prefix.
◆ kMaxTestWaitTime()
constexpr std::chrono::seconds utest::kMaxTestWaitTime |
( |
20 |
| ) |
|
|
inlineconstexpr |
The maximum time a typical test is allowed to execute. If exceeded, a deadlock is assumed. This time must not be too low to avoid flaky tests.