Skip to content

API VariantTest.Get test fails on windows when WITH_ABSEIL=ON #3309

@dbarker

Description

@dbarker

Describe your environment
main at b4328c0
windows 2019 (setup with ./ci/setup_windows_ci_environment.ps1)
WITH_ABSEIL=ON

Steps to reproduce
build and test setting WITH_ABSEIL=ON

What is the expected behavior?
test passes

What is the actual behavior?
test fails

[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from VariantTest
[ RUN      ] VariantTest.Get
Running main() from D:\a\opentelemetry-cpp\opentelemetry-cpp\tools\vcpkg\buildtrees\gtest\src\v1.14.0-bcf93537a8.clean\googletest\src\gtest_main.cc
D:\a\opentelemetry-cpp\opentelemetry-cpp\api\test\nostd\variant_test.cc(52): error: Death test: { nostd::get<float>(w); }
    Result: threw an exception.
 Error msg:
[  DEATH   ] 
[  DEATH   ] D:\a\opentelemetry-cpp\opentelemetry-cpp\api\test\nostd\variant_test.cc(52):: Caught std::exception-derived exception escaping the death test statement. Exception message: Bad variant access
[  DEATH   ] 

[  FAILED  ] VariantTest.Get (8 ms)
[----------] 1 test from VariantTest (8 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (9 ms total)
[  PASSED  ] 0 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] VariantTest.Get

Additional context
There are no windows ci jobs that test WITH_ABSEIL=ON

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage/acceptedIndicates an issue or PR is ready to be actively worked on.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions