mdbx-test: добавление тестов для mdbx_env_resurrect_after_fork().

This commit is contained in:
Леонид Юрьев (Leonid Yuriev)
2023-11-08 19:58:18 +03:00
parent af4dfe541b
commit d9f49b17de
10 changed files with 276 additions and 9 deletions

View File

@@ -108,8 +108,7 @@ bool output(const loglevel priority, const char *format, ...) {
return true;
}
void output_nocheckloglevel_ap(const logging::loglevel priority,
const char *format, va_list ap) {
bool ln() {
if (last) {
putc('\n', last);
fflush(last);
@@ -118,8 +117,14 @@ void output_nocheckloglevel_ap(const logging::loglevel priority,
fflush(stdout);
}
last = nullptr;
return true;
}
return false;
}
void output_nocheckloglevel_ap(const logging::loglevel priority,
const char *format, va_list ap) {
ln();
chrono::time now = chrono::now_realtime();
struct tm tm;
#ifdef _MSC_VER