Skip to content
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

Test stl_logging fails in macOS CMake build #201

Closed
jakirkham opened this issue Jun 26, 2017 · 3 comments · Fixed by #608
Closed

Test stl_logging fails in macOS CMake build #201

jakirkham opened this issue Jun 26, 2017 · 3 comments · Fixed by #608

Comments

@jakirkham
Copy link

Running into a test failure on macOS 10.10 using AppleClang 6.1.0.6020053 with CMake when building glog 0.3.5. [1] When building with regular Make using the same macOS configuration, the same failure does not occur. [2] Neither CMake nor Make fail on Linux. Perhaps there is a bug in the CMake build w.r.t. macOS?

1: https://travis-ci.org/conda-forge/glog-feedstock/builds/246915696#L466
2: https://travis-ci.org/conda-forge/glog-feedstock/builds/246912247#L540

xhochy added a commit to xhochy/glog that referenced this issue Apr 29, 2019
Printing the content of hash-based containers doesn't lead always to the same string as their ordering is not fixed. Luckily the number of possible permutations is so small that we can enumerate all of them.

Fixes google#201.
xhochy added a commit to xhochy/glog that referenced this issue Apr 29, 2019
Printing the content of hash-based containers doesn't lead always to the same string as their ordering is not fixed. Luckily the number of possible permutations is so small that we can enumerate all of them.

Fixes google#201.
@emmenlau
Copy link

With glog 0.4.0 I still get this error in stl_logging:

test 5
    Start 5: stl_logging

5: Test command: /data/bdaci01/BioDataAnalysis/tmp-MacOSX-Core2-10.13-x86_64-clang9.1.0/Debug/glog-0.4.0-x86_64/stl_logging_unittest
5: Test timeout computed to be: 1500
5: Check failed: ss.str() == "10 20 30"
5/5 Test #5: stl_logging ......................***Failed    0.01 sec

@yiakwy
Copy link

yiakwy commented Nov 6, 2020

@emmenlau Have you solved it? I hit the some problem when I am mitigrating my building codes with upate of new cmake commands into a new mac book. And previously it worked very well.

      Start  9: cmake_package_config_build
 9/10 Test  #9: cmake_package_config_build .......   Passed    0.51 sec
      Start 10: cmake_package_config_cleanup
10/10 Test #10: cmake_package_config_cleanup .....   Passed    0.01 sec

80% tests passed, 2 tests failed out of 10

Total Test time (real) =   1.89 sec

The following tests FAILED:
	  2 - logging (Child aborted)
	  5 - stl_logging (Failed)
Errors while running CTest
gmake: *** [Makefile:149: test] Error 8
➜  brew git:(dev_wangyi) ✗ 


@emmenlau
Copy link

emmenlau commented Nov 6, 2020

Its still the same for me, tests fail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants