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

UTBotCPP does not support anonymous enums. #577

Closed
kichunya opened this issue Jan 17, 2023 · 0 comments · Fixed by #599
Closed

UTBotCPP does not support anonymous enums. #577

kichunya opened this issue Jan 17, 2023 · 0 comments · Fixed by #599
Labels
bug Something isn't working c-syntax Related to generation tests for C cpp-syntax Related to generation tests for C++

Comments

@kichunya
Copy link
Collaborator

Description
If project contains such function that returns anonymous enum:

enum {runn, walk} some_enum_function(){
    return runn;
}

There is no possibility to generate tests for such function or run generated tests for another function in this project, cause wrapper contains such lines:

enum (anonymous enum at /home/utbot/UTBotCpp/integration-tests/c-example/lib/structures/enums.c:78:1) some_enum_function_lib_structures_enums_c() {
return some_enum_function();
}

To Reproduce

  1. Add example of function from description into project.
  2. Generate tests for some function.
  3. See that wrapper for function with anonymous enum looks like it shown in description.

Expected behavior
Tests are supposed to be generated and executed.

Actual behavior
Tests failed or did not generated.

@kichunya kichunya added bug Something isn't working cpp-syntax Related to generation tests for C++ c-syntax Related to generation tests for C labels Jan 17, 2023
@ladisgin ladisgin added regression Regression and removed regression Regression labels Jan 30, 2023
@kichunya kichunya linked a pull request Jul 11, 2023 that will close this issue
@github-project-automation github-project-automation bot moved this from Todo to Done in UTBot C/C++ Jul 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working c-syntax Related to generation tests for C cpp-syntax Related to generation tests for C++
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants