summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2017-05-11 20:50:26 +0100
committerChris Wilson <chris+github@qwirx.com>2017-06-22 20:28:06 +0100
commit809d9ebacc409c4a86edb6077f489da67a2653d4 (patch)
tree0d2c3bb4422a5362f2617f916a94c8430b0b4996 /test
parent105f2620b98bfd4e5d7ed576b5cc4b2317dcf634 (diff)
Increase precision of timing on Windows.
Should hopefully reduce random failures of timing-dependent tests which rely on subsecond precision for accuracy. (cherry picked from commit c845b2e39fffeb560983a301d810616a6495469d)
Diffstat (limited to 'test')
-rw-r--r--test/bbackupd/testbbackupd.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/bbackupd/testbbackupd.cpp b/test/bbackupd/testbbackupd.cpp
index 7113880d..cc602f22 100644
--- a/test/bbackupd/testbbackupd.cpp
+++ b/test/bbackupd/testbbackupd.cpp
@@ -3675,6 +3675,7 @@ bool test_changing_client_store_marker_pauses_daemon()
box_time_t sync_start_time = GetCurrentBoxTime();
sync_and_wait();
box_time_t sync_time = GetCurrentBoxTime() - sync_start_time;
+ BOX_INFO("Sync takes " << BOX_FORMAT_MICROSECONDS(sync_time));
// Time how long a compare takes. On NetBSD it's 3 seconds, and that
// interferes with test timing unless we account for it.
@@ -3682,7 +3683,7 @@ bool test_changing_client_store_marker_pauses_daemon()
// There should be no differences right now (yet).
TEST_COMPARE(Compare_Same);
box_time_t compare_time = GetCurrentBoxTime() - compare_start_time;
- BOX_TRACE("Compare takes " << BOX_FORMAT_MICROSECONDS(compare_time));
+ BOX_INFO("Compare takes " << BOX_FORMAT_MICROSECONDS(compare_time));
// Wait for the end of another sync, to give us ~3 seconds to change
// the client store marker.