Skip to content

benchmark selftest failures on WSL #839

Closed
@EricBackus

Description

@EricBackus

I'm running under the Windows Subsystem for Linux (WSL), so this is close to a linux setup but not identical. I'm wondering if these failures are known/expected or if I should investigate them further.

I do the following:

git clone https://github.com/google/benchmark.git
cd benchmark
mkdir build
cd build
cmake -DBENCHMARK_ENABLE_GTEST_TESTS=OFF -DCMAKE_BUILD_TYPE=Release ..
cmake --build . --config Release
ctest -C Release

The cmake build is successful. Most of the tests pass, but four of them fail. The last part of the ctest output looks like this:

      Start 48: reporter_output_test
48/58 Test #48: reporter_output_test .......................***Exception: Child aborted  0.04 sec
      Start 49: templated_fixture_test
49/58 Test #49: templated_fixture_test .....................   Passed    0.02 sec
      Start 50: user_counters_test
50/58 Test #50: user_counters_test .........................***Exception: Child aborted  0.05 sec
      Start 51: internal_threading_test
51/58 Test #51: internal_threading_test ....................   Passed    1.82 sec
      Start 52: report_aggregates_only_test
52/58 Test #52: report_aggregates_only_test ................   Passed    0.02 sec
      Start 53: display_aggregates_only_test
53/58 Test #53: display_aggregates_only_test ...............   Passed    0.01 sec
      Start 54: user_counters_tabular_test
54/58 Test #54: user_counters_tabular_test .................***Exception: Child aborted  0.16 sec
      Start 55: user_counters_thousands_test
55/58 Test #55: user_counters_thousands_test ...............   Passed    0.02 sec
      Start 56: memory_manager_test
56/58 Test #56: memory_manager_test ........................   Passed    0.07 sec
      Start 57: cxx03
57/58 Test #57: cxx03 ......................................   Passed    0.30 sec
      Start 58: complexity_benchmark
58/58 Test #58: complexity_benchmark .......................***Exception: Child aborted  2.77 sec

93% tests passed, 4 tests failed out of 58

Total Test time (real) =  15.25 sec

The following tests FAILED:
	 48 - reporter_output_test (Child aborted)
	 50 - user_counters_test (Child aborted)
	 54 - user_counters_tabular_test (Child aborted)
	 58 - complexity_benchmark (Child aborted)
Errors while running CTest

The errors go away if I compile in debug mode, if that's any hint about what's going wrong.

Is this expected? If this needs more investigation, any hints for where I should start looking? Thanks!

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