In our application, we use several dynamically linked libraries. We recently updated the version of one of these libraries. The developers of this library provide the main method with this new version (doing nothing but print Hello World).
The problem is that we use GTest and GMock, which generate our own main method. When we run our test binary, we just get "Hello World", so the wrong main method is accepted.
How can we get the main test method to be used?
UPDATE: This seems to be a problem with GMock / GTest. The main method is usually generated, but this is not so, since it finds an existing main method.
source share