summaryrefslogtreecommitdiffstats
path: root/googletest/src
diff options
context:
space:
mode:
authordinord <dino.radakovich@gmail.com>2021-11-10 22:21:09 (GMT)
committerdinord <dino.radakovich@gmail.com>2021-11-10 22:21:09 (GMT)
commit7f2288476bec1a2918f7eb187e464ec70a274fef (patch)
tree07f584fdcc1547664f70824b4d663c6be830e1e0 /googletest/src
parent6c8a386513b70cb43df997b6406ae5c39f5c9b88 (diff)
parente4ffd4d715c2cf4b431d04f11cf144e575bc0823 (diff)
downloadgoogletest-7f2288476bec1a2918f7eb187e464ec70a274fef.zip
googletest-7f2288476bec1a2918f7eb187e464ec70a274fef.tar.gz
googletest-7f2288476bec1a2918f7eb187e464ec70a274fef.tar.bz2
Merge pull request #3657 from BioDataAnalysis:bda_add_winerr
PiperOrigin-RevId: 408896910
Diffstat (limited to 'googletest/src')
-rw-r--r--googletest/src/gtest-port.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/googletest/src/gtest-port.cc b/googletest/src/gtest-port.cc
index f63625b..a34c1c9 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,