Skip to content

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

@Flamefire

Description

@Flamefire

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 1bc59dc
  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:

EXPECT_EQ(element_count["BM_Match1/64"], 100) << "Unexpected repetitions.";
EXPECT_EQ(element_count["BM_Match1/80"], 100) << "Unexpected repetitions.";
EXPECT_GE(interleaving_count.size(), 2) << "Interleaving was not randomized.";

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions