diff options
author | Mario Emmenlauer <memmenlauer@biodataanalysis.de> | 2021-11-10 12:20:14 (GMT) |
---|---|---|
committer | Mario Emmenlauer <memmenlauer@biodataanalysis.de> | 2021-11-10 12:36:38 (GMT) |
commit | e4ffd4d715c2cf4b431d04f11cf144e575bc0823 (patch) | |
tree | ab3ba2d5ab2451806dd0c2087f20ca3b02a57bf4 /googletest/src | |
parent | 79efd968bf7edb60667314750e101bbf99a0494e (diff) | |
download | googletest-e4ffd4d715c2cf4b431d04f11cf144e575bc0823.zip googletest-e4ffd4d715c2cf4b431d04f11cf144e575bc0823.tar.gz googletest-e4ffd4d715c2cf4b431d04f11cf144e575bc0823.tar.bz2 |
googletest/src/gtest-port.cc: Added GetLastError() on Windows for CreateThread()refs/pull/3657/head
Diffstat (limited to 'googletest/src')
-rw-r--r-- | googletest/src/gtest-port.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/googletest/src/gtest-port.cc b/googletest/src/gtest-port.cc index f63625b..5ee7740 100644 --- a/googletest/src/gtest-port.cc +++ b/googletest/src/gtest-port.cc @@ -629,7 +629,8 @@ class ThreadLocalRegistryImpl { &ThreadLocalRegistryImpl::WatcherThreadFunc, reinterpret_cast<LPVOID>(new ThreadIdAndHandle(thread_id, thread)), CREATE_SUSPENDED, &watcher_thread_id); - GTEST_CHECK_(watcher_thread != nullptr); + GTEST_CHECK_(watcher_thread != nullptr) + << "CreateThread failed with error " << ::GetLastError() << "."; // Give the watcher thread the same priority as ours to avoid being // blocked by it. ::SetThreadPriority(watcher_thread, |