Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: std::length_error from cmake function "generate_testname_guards()" #4537

Closed
hunjmes opened this issue May 14, 2024 · 1 comment
Closed

Comments

@hunjmes
Copy link

hunjmes commented May 14, 2024

Describe the issue

Symptoms seem related to earlier issue #2849 .

When building a package that has lots of Google Tests, we get an unhandled std::length_error exception, from file GoogleTestAddTests.cmake , function generate_testname_guards():

terminate called after throwing an instance of 'std::length_error'
  what():  basic_string::_M_create
CMake Error at .../Modules/GoogleTestAddTests.cmake:40 (message):
  Error running test executable.

    Path: '.../TestSuites'
    Result: Child aborted
    Output:
      SingleThreadUtils default stack size from system 8388608

Steps to reproduce the problem

Our build system currently reproduces this privately, but I do not yet have a public repro.

What version of GoogleTest are you using?

3.9.

What operating system and version are you using?

Amazon Linux.

What compiler and version are you using?

gcc 11.x

What build system are you using?

cmake 3.9.6.

Additional context

No response

@derekmauro
Copy link
Member

Sorry, but we don't look at issues that are this vague and have no reproducer.

@derekmauro derekmauro closed this as not planned Won't fix, can't repro, duplicate, stale May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants