-
Notifications
You must be signed in to change notification settings - Fork 10.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some tests are failing when using the debug configuration (-DCMAKE_BUILD_TYPE=Debug) on Debian #1175
Comments
Hi,
What are we doing wrong? I link gtest_main and gmock_main and my tests are passing. I am on macOS Sierra Version 10.12.6 using
|
What I did was adding "include(CTest)" in my top-level CMakeLists.txt file. Now it shows me only my test files (see also https://stackoverflow.com/questions/13550153/no-tests-found-when-using-gtest-with-cmake-ctest and https://cmake.org/cmake/help/v2.8.10/cmake.html#module:CTest). |
I can reproduce this on Linux with gcc. When running |
The problem seems to be located in googletest/cmake/internal_utils.cmake where it is assumed that |
I use the master branch:
The following tests FAILED:
29 - gtest_break_on_failure_unittest (Failed)
30 - gtest_catch_exceptions_test (Failed)
31 - gtest_color_test (Failed)
32 - gtest_env_var_test (Failed)
33 - gtest_filter_unittest (Failed)
34 - gtest_help_test (Failed)
35 - gtest_list_tests_unittest (Failed)
36 - gtest_output_test (Failed)
37 - gtest_shuffle_test (Failed)
38 - gtest_throw_on_failure_test (Failed)
39 - gtest_uninitialized_test (Failed)
40 - gtest_xml_outfiles_test (Failed)
41 - gtest_xml_output_unittest (Failed)
Note that if I use the default build configuration (without -DCMAKE_BUILD_TYPE=Debug) then everything is OK:
System details:
I attached the output of 'cmake' and 'make test' commands.
cmake-output.txt
make-test-output.txt
The text was updated successfully, but these errors were encountered: