benchmark icon indicating copy to clipboard operation
benchmark copied to clipboard

[BUG] benchmark_random_interleaving_gtest isn't run when build as shared library

Open Flamefire opened this issue 8 months ago • 1 comments

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

  1. sync to commit 1bc59dce278b9145f18ef88d31d373c4ba939dc4
  2. cmake -DBUILD_SHARED_LIBS=ON
  3. make benchmark_random_interleaving_gtest
  4. ./test/benchmark_random_interleaving_gtest
  5. 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

Flamefire avatar Mar 20 '25 16:03 Flamefire

Hm, that sounds weird.

LebedevRI avatar Mar 21 '25 04:03 LebedevRI