benchmark
benchmark copied to clipboard
[BUG] benchmark_random_interleaving_gtest isn't run when build as shared library
Describe the bug
When running benchmark_random_interleaving_gtest I only get an exit code "1" (failure) but no output at all.
System Which OS, compiler, and compiler version are you using:
- OS: RHEL 8.7
- Compiler and version: GCC 13.3 on ppc9le
To reproduce
- sync to commit 1bc59dce278b9145f18ef88d31d373c4ba939dc4
- cmake
-DBUILD_SHARED_LIBS=ON - make benchmark_random_interleaving_gtest
- ./test/benchmark_random_interleaving_gtest
- See error
Expected behavior Output is show, success is reported
Additional context
It seems to work on some systems but consistently fails here. It works when using static libraries.
It also works when I comment out these 3 checks: https://github.com/google/benchmark/blob/1bc59dce278b9145f18ef88d31d373c4ba939dc4/test/benchmark_random_interleaving_gtest.cc#L119-L121
Hm, that sounds weird.