From 834f6d078451323dcc8e88cf305474b7087cac88 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Tue, 25 Jun 2019 15:48:03 +0300 Subject: [PATCH] mdbx-test: fix iteration count. Change-Id: Iaf19af417e54ee4ad968722c94d377dab29be149 --- test/hill.cc | 2 +- test/main.cc | 2 ++ test/test.cc | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/test/hill.cc b/test/hill.cc index 6343d2ef..a3152868 100644 --- a/test/hill.cc +++ b/test/hill.cc @@ -298,7 +298,7 @@ bool testcase_hill::run() { } if (txn_guard) { - err = breakable_restart(); + err = breakable_commit(); if (unlikely(err != MDBX_SUCCESS)) log_notice("downhill: bailout at commit due '%s'", mdbx_strerror(err)); } diff --git a/test/main.cc b/test/main.cc index 0b39c24d..69ce6973 100644 --- a/test/main.cc +++ b/test/main.cc @@ -27,6 +27,8 @@ void actor_params::set_defaults(const std::string &tmpdir) { loglevel = #ifdef NDEBUG logging::info; +#elif defined(_WIN32) || defined(_WIN64) + logging::verbose; #else logging::trace; #endif diff --git a/test/test.cc b/test/test.cc index 22612964..b4661957 100644 --- a/test/test.cc +++ b/test/test.cc @@ -576,7 +576,7 @@ bool test_execute(const actor_config &config_const) { } else { if (config.params.nrepeat == 1) log_info("test successed"); - else if (config.params.nrepeat == 1) + else if (config.params.nrepeat) log_info("test successed (iteration %zi of %zi)", iter, size_t(config.params.nrepeat)); else