mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-23 14:40:51 +01:00
Temporarily add some windows verbosity to track down unit test failure on jenkins.
This commit is contained in:
parent
3f9c036821
commit
1033713c9c
1 changed files with 18 additions and 0 deletions
|
@ -388,24 +388,33 @@ static GetTickCount64_fn_t GetTickCount64_fn = NULL;
|
||||||
static void
|
static void
|
||||||
monotime_init_internal(void)
|
monotime_init_internal(void)
|
||||||
{
|
{
|
||||||
|
puts("win32-mii-1");
|
||||||
tor_assert(!monotime_initialized);
|
tor_assert(!monotime_initialized);
|
||||||
BOOL ok = InitializeCriticalSectionAndSpinCount(&monotime_lock, 200);
|
BOOL ok = InitializeCriticalSectionAndSpinCount(&monotime_lock, 200);
|
||||||
tor_assert(ok);
|
tor_assert(ok);
|
||||||
|
puts("win32-mii-2");
|
||||||
ok = InitializeCriticalSectionAndSpinCount(&monotime_coarse_lock, 200);
|
ok = InitializeCriticalSectionAndSpinCount(&monotime_coarse_lock, 200);
|
||||||
tor_assert(ok);
|
tor_assert(ok);
|
||||||
|
puts("win32-mii-3");
|
||||||
LARGE_INTEGER li;
|
LARGE_INTEGER li;
|
||||||
ok = QueryPerformanceFrequency(&li);
|
ok = QueryPerformanceFrequency(&li);
|
||||||
|
puts("win32-mii-4");
|
||||||
tor_assert(ok);
|
tor_assert(ok);
|
||||||
|
puts("win32-mii-5");
|
||||||
tor_assert(li.QuadPart);
|
tor_assert(li.QuadPart);
|
||||||
|
puts("win32-mii-6");
|
||||||
ticks_per_second = li.QuadPart;
|
ticks_per_second = li.QuadPart;
|
||||||
last_pctr = 0;
|
last_pctr = 0;
|
||||||
pctr_offset = 0;
|
pctr_offset = 0;
|
||||||
|
|
||||||
|
puts("win32-mii-7");
|
||||||
HANDLE h = load_windows_system_library(TEXT("kernel32.dll"));
|
HANDLE h = load_windows_system_library(TEXT("kernel32.dll"));
|
||||||
|
puts("win32-mii-8");
|
||||||
if (h) {
|
if (h) {
|
||||||
GetTickCount64_fn = (GetTickCount64_fn_t)
|
GetTickCount64_fn = (GetTickCount64_fn_t)
|
||||||
GetProcAddress(h, "GetTickCount64");
|
GetProcAddress(h, "GetTickCount64");
|
||||||
}
|
}
|
||||||
|
puts("win32-mii-9");
|
||||||
// FreeLibrary(h) ?
|
// FreeLibrary(h) ?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -541,9 +550,18 @@ monotime_init(void)
|
||||||
if (!monotime_initialized) {
|
if (!monotime_initialized) {
|
||||||
monotime_init_internal();
|
monotime_init_internal();
|
||||||
monotime_initialized = 1;
|
monotime_initialized = 1;
|
||||||
|
#ifdef _WIN32
|
||||||
|
puts("mi-0");
|
||||||
|
#endif
|
||||||
monotime_get(&initialized_at);
|
monotime_get(&initialized_at);
|
||||||
|
#ifdef _WIN32
|
||||||
|
puts("mi-1");
|
||||||
|
#endif
|
||||||
#ifdef MONOTIME_COARSE_FN_IS_DIFFERENT
|
#ifdef MONOTIME_COARSE_FN_IS_DIFFERENT
|
||||||
monotime_coarse_get(&initialized_at_coarse);
|
monotime_coarse_get(&initialized_at_coarse);
|
||||||
|
#endif
|
||||||
|
#ifdef _WIN32
|
||||||
|
puts("mi-2");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue