Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Initialize glog in custom gmock main function#2916

Merged
ahojnnes merged 7 commits intomainfrom
user/jsch/gtest-main-glog-init
Nov 19, 2024
Merged

Initialize glog in custom gmock main function#2916
ahojnnes merged 7 commits intomainfrom
user/jsch/gtest-main-glog-init

Conversation

@ahojnnes
Copy link
Contributor

@ahojnnes ahojnnes commented Nov 17, 2024

Without the custom main function introduced in this PR, we get warnings about glog not being initialized, since the default gtest/gmock main functions do not initialize glog.

@sarlinpe
Copy link
Member

Nice! Are the test failures related? Does it mean that tests have been silently failing on Windows?

@ahojnnes
Copy link
Contributor Author

ahojnnes commented Nov 18, 2024

Nice! Are the test failures related? Does it mean that tests have been silently failing on Windows?

I am afraid that this might be the case. I don't have access to a Windows machine right now though :-) Will need to setup a virtual machine to debug the issues.

@ahojnnes
Copy link
Contributor Author

@sarlinpe I fixed the Windows test failures. They were related in the sense that we didn't fail on test failures under Windows before the custom gtest main function.

@ahojnnes ahojnnes enabled auto-merge (squash) November 19, 2024 08:58
@ahojnnes ahojnnes merged commit 92ca62b into main Nov 19, 2024
@ahojnnes ahojnnes deleted the user/jsch/gtest-main-glog-init branch November 19, 2024 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants