diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-07-26 08:56:55 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-07-26 08:56:55 -0400 |
commit | 1033713c9c2ef70be7caf847562cbb709ea7db29 (patch) | |
tree | bd2adf5240e8b5dd9bb59d88c4c7271302061bbb /src/common/compat_time.c | |
parent | 3f9c036821ee5b3c5f3958d7dc41d62a450da36e (diff) | |
download | tor-1033713c9c2ef70be7caf847562cbb709ea7db29.tar.gz tor-1033713c9c2ef70be7caf847562cbb709ea7db29.zip |
Temporarily add some windows verbosity to track down unit test failure on jenkins.
Diffstat (limited to 'src/common/compat_time.c')
-rw-r--r-- | src/common/compat_time.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/common/compat_time.c b/src/common/compat_time.c index 4757225404..9fac0bcddf 100644 --- a/src/common/compat_time.c +++ b/src/common/compat_time.c @@ -388,24 +388,33 @@ static GetTickCount64_fn_t GetTickCount64_fn = NULL; static void monotime_init_internal(void) { + puts("win32-mii-1"); tor_assert(!monotime_initialized); BOOL ok = InitializeCriticalSectionAndSpinCount(&monotime_lock, 200); tor_assert(ok); + puts("win32-mii-2"); ok = InitializeCriticalSectionAndSpinCount(&monotime_coarse_lock, 200); tor_assert(ok); + puts("win32-mii-3"); LARGE_INTEGER li; ok = QueryPerformanceFrequency(&li); + puts("win32-mii-4"); tor_assert(ok); + puts("win32-mii-5"); tor_assert(li.QuadPart); + puts("win32-mii-6"); ticks_per_second = li.QuadPart; last_pctr = 0; pctr_offset = 0; + puts("win32-mii-7"); HANDLE h = load_windows_system_library(TEXT("kernel32.dll")); + puts("win32-mii-8"); if (h) { GetTickCount64_fn = (GetTickCount64_fn_t) GetProcAddress(h, "GetTickCount64"); } + puts("win32-mii-9"); // FreeLibrary(h) ? } @@ -541,10 +550,19 @@ monotime_init(void) if (!monotime_initialized) { monotime_init_internal(); monotime_initialized = 1; +#ifdef _WIN32 + puts("mi-0"); +#endif monotime_get(&initialized_at); +#ifdef _WIN32 + puts("mi-1"); +#endif #ifdef MONOTIME_COARSE_FN_IS_DIFFERENT monotime_coarse_get(&initialized_at_coarse); #endif +#ifdef _WIN32 + puts("mi-2"); +#endif } } |