Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Initialize glog in custom gmock main function#2916

Merged
ahojnnes merged 7 commits into
maincolmap/colmap:mainfrom
user/jsch/gtest-main-glog-initcolmap/colmap:user/jsch/gtest-main-glog-initCopy head branch name to clipboard
Nov 19, 2024
Merged

Initialize glog in custom gmock main function#2916
ahojnnes merged 7 commits into
maincolmap/colmap:mainfrom
user/jsch/gtest-main-glog-initcolmap/colmap:user/jsch/gtest-main-glog-initCopy head branch name to clipboard

Conversation

@ahojnnes

@ahojnnes ahojnnes commented Nov 17, 2024

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Member

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

@ahojnnes

ahojnnes commented Nov 18, 2024

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown
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.

Comment thread src/colmap/controllers/incremental_pipeline_test.cc
@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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.